<s> from __future__ import print_function <EOL> """<STR_LIT>""" <EOL> __author__ = '<STR_LIT>' <EOL> from pybrain . rl . environments . twoplayergames . pente import PenteGame <EOL> from pybrain . rl . environments . twoplayergames . gomokuplayers . randomplayer import RandomGomokuPlayer <EOL> from pybrain . rl . environments . twoplayergames . gomokuplayers . moduledecision import ModuleDecidingPlayer <EOL> from pybrain . structure . networks . custom . convboard import ConvolutionalBoardNetwork <EOL> dim = <NUM_LIT:7> <EOL> g = PenteGame ( ( dim , dim ) ) <EOL> print ( g ) <EOL> n = ConvolutionalBoardNetwork ( dim , <NUM_LIT:5> , <NUM_LIT:3> ) <EOL> p1 = ModuleDecidingPlayer ( n , g ) <EOL> p2 = RandomGomokuPlayer ( g ) <EOL> p2 . color = g . WHITE <EOL> g . playToTheEnd ( p1 , p2 ) <EOL> print ( g ) </s>
