From bf443e083e03ba95a3021941622218fd1f21d42d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoffer=20M=C3=BCller=20Madsen?= Date: Wed, 7 Feb 2018 14:32:56 +0000 Subject: [PATCH] Update board.py --- board.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board.py b/board.py index 092b10c..10d071e 100644 --- a/board.py +++ b/board.py @@ -21,7 +21,7 @@ class Board: return self.state 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