Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/gogame.py
diff options
context:
space:
mode:
authorAndrés Ambrois <andresambrois@gmail.com>2008-08-16 11:56:28 (GMT)
committer Andrés Ambrois <andresambrois@gmail.com>2008-08-16 11:56:28 (GMT)
commit6a31b9d99ff380f96695a1323d82f17593366d5c (patch)
treefb1c018a0eaa248e04ad36b3af3269f52b7ccd4e /gogame.py
parent2a09b6f71f92ac8ccd792877f93c603594ef6b92 (diff)
Update score after undos
Diffstat (limited to 'gogame.py')
-rw-r--r--gogame.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/gogame.py b/gogame.py
index 01390ba..51a9486 100644
--- a/gogame.py
+++ b/gogame.py
@@ -192,7 +192,9 @@ class GoGame:
pos, color, captures = self.undostack.pop()
del self.status[pos]
if captures:
- for p in captures: self.status[p] = self.invert(color)
+ for p in captures:
+ self.status[p] = self.invert(color)
+ self.score[color] -= 1
return True
else:
return False