From cd2f5ca75127e1a583f34c493b119d73466537bc Mon Sep 17 00:00:00 2001 From: Andrés Ambrois Date: Thu, 31 Jul 2008 15:03:25 +0000 Subject: Remove Numeric import. Check captures in undo(). --- diff --git a/game.py b/game.py index 804fe03..cb51a1c 100755 --- a/game.py +++ b/game.py @@ -1,6 +1,5 @@ import logging -from Numeric import * from gettext import gettext as _ import gtk @@ -188,7 +187,8 @@ class abstractBoard: if self.undostack: pos, color, captures = self.undostack.pop() del self.status[pos] - for p in captures: self.status[p] = self.invert(color) + if captures: + for p in captures: self.status[p] = self.invert(color) def remove(self, pos): """ Remove a stone form the board, and store this action in undostack. """ -- cgit v0.9.1