Skip to content

Commit

Permalink
simple change 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 3e548fd commit 36ef76d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TicTacToe.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def chooseRandomMoveFromList(board, movesList):
if isSpaceFree(board, i):
possibleMoves.append(i)

if len(possibleMoves) != 0:
if len(possibleMoves) > 0:
return random.choice(possibleMoves)
else:
return None
Expand Down

0 comments on commit 36ef76d

Please sign in to comment.