Update board.py
This commit is contained in:
parent
c2118d0549
commit
bf443e083e
2
board.py
2
board.py
|
@ -21,7 +21,7 @@ class Board:
|
||||||
return self.state
|
return self.state
|
||||||
|
|
||||||
def switch(self,cur):
|
def switch(self,cur):
|
||||||
return -1 if cur == 1 else 1
|
return -1 * cur
|
||||||
|
|
||||||
|
|
||||||
# Remember to handle edge case when we're on the last moves and you may go
|
# Remember to handle edge case when we're on the last moves and you may go
|
||||||
|
|
Loading…
Reference in New Issue
Block a user