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-09-11 05:47:47 (GMT)
committer Andrés Ambrois <andresambrois@gmail.com>2008-09-11 05:47:47 (GMT)
commit629fe20da1281cd4fe82ca491ec96cf823b28db3 (patch)
tree69bbded896862f1c885ed9a18fad56ec844dffbb /gogame.py
parent945fc1978d1b4ac2fdf712bd6d37e539cb843bd1 (diff)
Mark territories at game end with pretty crosses. Update TODO
Modified patch by Nate Ridderman
Diffstat (limited to 'gogame.py')
-rw-r--r--gogame.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gogame.py b/gogame.py
index fa8e705..894952f 100644
--- a/gogame.py
+++ b/gogame.py
@@ -191,10 +191,10 @@ class GoGame:
for current_element in current_group:
for x in self.neighbors(current_element):
if self.status.has_key(x):
- if self.status[x] != color:
+ if self.status[x] != color:
return None
elif not x in current_group:
- current_group.append(x)
+ current_group.append(x)
return set(current_group)
groups = {'B':set(), 'W':set()}