From 629fe20da1281cd4fe82ca491ec96cf823b28db3 Mon Sep 17 00:00:00 2001 From: Andrés Ambrois Date: Thu, 11 Sep 2008 05:47:47 +0000 Subject: Mark territories at game end with pretty crosses. Update TODO Modified patch by Nate Ridderman --- (limited to 'gogame.py') 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()} -- cgit v0.9.1