1
0
Fork 0
mirror of synced 2024-06-10 22:54:33 +12:00

Corrected which index was checked

This commit is contained in:
Phxntxm 2016-08-14 15:37:45 -05:00
parent 4c49ae8bbf
commit 616c7fdc4b

View file

@ -55,7 +55,7 @@ class Board:
return self.challengers['x']
else:
return self.challengers['o']
if self.board[0][2] == self.board[1][1] and self.board[0][2] == self.board[3][0] and self.board[0][2] != ' ':
if self.board[0][2] == self.board[1][1] and self.board[0][2] == self.board[2][0] and self.board[0][2] != ' ':
if self.board[0][2] == 'x':
return self.challengers['x']
else: