Skip to content

Commit

Permalink
added random seed in function chooseRandomMoveFromList(...)
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Bender committed Mar 29, 2018
1 parent 51091ba commit 3e548fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions TicTacToe.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def getPlayerMove(board):
def chooseRandomMoveFromList(board, movesList):
# Returns a valid move from the passed list on the passed board.
# Returns None if there is no valid move.
random.seed()
possibleMoves = []
for i in movesList:
if isSpaceFree(board, i):
Expand Down

0 comments on commit 3e548fd

Please sign in to comment.