Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrés Ambrois <andresambrois@gmail.com>2008-07-31 15:03:25 (GMT)
committer Andrés Ambrois <andresambrois@gmail.com>2008-07-31 15:03:25 (GMT)
commitcd2f5ca75127e1a583f34c493b119d73466537bc (patch)
tree2f8f418ad3c0695e9cd05aa2996d3e1b5de66c45
parentdc08b0a63060a0a2dc03ac414bbad8480baec87f (diff)
Remove Numeric import. Check captures in undo().
-rwxr-xr-xgame.py4
1 files changed, 2 insertions, 2 deletions
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. """