Package MeatEngine :: Package AI :: Module boardRep :: Class TicTacToeBoard
[hide private]
[frames] | no frames]

Class TicTacToeBoard

source code

Instance Methods [hide private]
 
__init__(self, hashVal=0) source code
 
countNum(self, num) source code
 
countX(self) source code
 
countO(self) source code
 
countEmpty(self) source code
 
hashVal(self) source code
 
getCanonicalHash(self) source code
 
getCanonicalCopy(self) source code
 
whoseTurn(self) source code
 
successorMap(self) source code
 
display(self) source code
 
move(self, x, y, p) source code
 
isLegalMove(self, x, y, p) source code
 
anyMoves(self) source code
 
getWinner(self)
returns 1 if p1 won, 2 if p2 won, -1 for a draw, or 0 if game is still ongoing
source code
 
isOver(self) source code
 
evaluate(self, player, verbose=0) source code