We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51091ba commit 3e548fdCopy full SHA for 3e548fd
TicTacToe.py
@@ -81,6 +81,7 @@ def getPlayerMove(board):
81
def chooseRandomMoveFromList(board, movesList):
82
# Returns a valid move from the passed list on the passed board.
83
# Returns None if there is no valid move.
84
+ random.seed()
85
possibleMoves = []
86
for i in movesList:
87
if isSpaceFree(board, i):
0 commit comments