diff options
Diffstat (limited to 'imago/gameLogic/gameMove.py')
-rw-r--r-- | imago/gameLogic/gameMove.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/imago/gameLogic/gameMove.py b/imago/gameLogic/gameMove.py index c1c7a05..b6f2947 100644 --- a/imago/gameLogic/gameMove.py +++ b/imago/gameLogic/gameMove.py @@ -84,14 +84,15 @@ class GameMove: vertices.add((row, col)) return vertices - def addMoveByCoords(self, coords): + def addMove(self, coords): """Adds a move to the next moves list creating its board from this move's board plus a new stone at the specified coordinates. """ - return self.addMove(coords[0], coords[1]) + if coords == "pass": + return self.addPass() + return self.addMoveByCoords(coords[0], coords[1]) - - def addMove(self, row, col): + def addMoveByCoords(self, row, col): """Adds a move to the next moves list creating its board from this move's board plus a new stone at the specified row and column. """ |