mirror of
https://github.com/solero/houdini.git
synced 2024-11-21 21:17:21 +00:00
commit
29180fe485
@ -13,7 +13,7 @@ class ConnectFourLogic(ITable):
|
||||
|
||||
def is_valid_move(self, col, row):
|
||||
if 0 <= row <= 5 and 0 <= col <= 6:
|
||||
if row == 5 or (self.board[col][row] == 0 and self.board[col][row + 1]):
|
||||
if (row == 5 or self.board[col][row + 1]) and self.board[col][row] == 0:
|
||||
return True
|
||||
return False
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user