Exemplo n.º 1
0
 def makeMove(self):
     move, score = getBestMove(self.state, self.player, 3 - self.player)
     self.state.place(*move)
Exemplo n.º 2
0
 def hintPressed(self):
     #possible enhancement: put this in a seperate thread so it doesn't lock up the interface.
     #it only has a noticeable delay for the very first move of the game, however, so NBD
     (x,y), _ = getBestMove(self.state, 1,2)
     self.view.throb(x,y)