Home | Trees | Indices | Help |
---|
|
1 import random 26158 legalMoves=[] 9 for x in range(3): 10 for y in range(3): 11 if board.isLegalMove(x,y,self.side): 12 legalMoves.append((x,y)) 13 x,y=random.choice(legalMoves) 14 return 3*y+x+1
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0beta1 on Sat Jul 28 11:43:46 2007 | http://epydoc.sourceforge.net |