diff options
author | Walter Bender <walter.bender@gmail.com> | 2013-02-12 20:33:48 (GMT) |
---|---|---|
committer | Walter Bender <walter.bender@gmail.com> | 2013-02-12 20:33:48 (GMT) |
commit | 7f03ba986d72058491ed8cf5a3cdf6f8460d34c3 (patch) | |
tree | 3ca8a95e73b07efa1ed41121f67af9931e5bfbbb | |
parent | 8a1444a516beef7eb3cac305ca1d0d711656070c (diff) |
fix prob. with overlapping number
-rw-r--r-- | yupana.py | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -69,6 +69,10 @@ class Yupana(): Sprite(self._sprites, 0, 0, self._box(self._width, self._height, color=colors[1])) + self._number_box = Sprite(self._sprites, 0, 0, self._box( + self._width, 2 * self._dot_size, color=colors[1])) + self._number_box.set_label_attributes(48) + self._dots = [] for p in range(SIX): y = self._height - self._space @@ -149,9 +153,6 @@ class Yupana(): Sprite(self._sprites, x - 1, y, self._line(vertical=True)) - self._number_box = Sprite(self._sprites, 0, 0, self._box( - self._width, 3 * self._dot_size, color=colors[1])) - self._number_box.set_label_attributes(72) # and initialize a few variables we'll need. self._all_clear() @@ -198,7 +199,7 @@ class Yupana(): else: self._dots[o + i].set_label('5') self._dots[o - 1].set_label('10') - elif mode == 'fibanocci': + elif mode == 'fibonacci': for i in range(TEN + 1): if i in [10]: self._dots[o + i].set_label('1') @@ -293,7 +294,7 @@ class Yupana(): return (10 ** e) * 3 else: return (10 ** e) * 5 - elif self._mode == 'fibanocci': + elif self._mode == 'fibonacci': if m in [10]: return 60 ** e elif m in [8, 9]: |