1
0
Fork 0
mirror of synced 2024-05-29 16:59:42 +12:00

Corrected issue where evaluation was happening instead of assignemnt

This commit is contained in:
Phxntxm 2016-08-14 15:57:12 -05:00
parent 166cc58f39
commit 04fe5cbd3e

View file

@ -29,7 +29,7 @@ class Board:
def update(self, x, y):
letter = 'x' if self.X_turn else 'o'
if self.board[x][y] == ' ':
self.board[x][y] == letter
self.board[x][y] = letter
else:
return False
self.X_turn = not self.X_turn