Corrected which index was checked
This commit is contained in:
parent
4c49ae8bbf
commit
616c7fdc4b
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ class Board:
|
||||||
return self.challengers['x']
|
return self.challengers['x']
|
||||||
else:
|
else:
|
||||||
return self.challengers['o']
|
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':
|
if self.board[0][2] == 'x':
|
||||||
return self.challengers['x']
|
return self.challengers['x']
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue