From aa2c999702dadba2afbcf2be9f597f890aafcc87 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Fri, 16 Apr 2021 16:56:23 +0200 Subject: fix api/game/accept --- voerbak/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'voerbak/main.py') diff --git a/voerbak/main.py b/voerbak/main.py index 2ca473e..ba56b1b 100644 --- a/voerbak/main.py +++ b/voerbak/main.py @@ -27,9 +27,9 @@ class bord: def outside_board(self, coords): return coords[0] < 0 or \ - coords[1] < 0 or \ - coords[0] > self.height - 1 or \ - coords[1] > self.width - 1 + coords[1] < 0 or \ + coords[0] > self.height - 1 or \ + coords[1] > self.width - 1 def recursive_solve(self, coords, check_for, direction, current_length): new_position = (coords[0] + direction[0], coords[1] + direction[1]) -- cgit v1.2.3