diff options
author | André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) |
commit | 629fe20da1281cd4fe82ca491ec96cf823b28db3 (patch) | |
tree | 69bbded896862f1c885ed9a18fad56ec844dffbb /gogame.py | |
parent | 945fc1978d1b4ac2fdf712bd6d37e539cb843bd1 (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.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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()} |