Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2012-09-07 19:26:49 (GMT)
committer Walter Bender <walter.bender@gmail.com>2012-09-07 19:26:49 (GMT)
commit30e8806197f87db50d5f689172b00bfd4bab93a8 (patch)
tree75ab29274d4edf7b419453d969a3a9970ad6e74c
parente57f928267e64b526bd39efe1399a49705c4414e (diff)
longer flash
-rw-r--r--chess.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/chess.py b/chess.py
index 831d7ce..42a6f44 100644
--- a/chess.py
+++ b/chess.py
@@ -592,7 +592,9 @@ class Gnuchess():
return
def _flasher(self, tiles, flash_color):
- if self._counter < 9:
+ # flash length (must be odd in order to guarentee that the
+ # original color is restored)
+ if self._counter < 13:
self._counter += 1
for tile in tiles:
i = self._file_and_rank_to_index(tile)