From 7f03ba986d72058491ed8cf5a3cdf6f8460d34c3 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Tue, 12 Feb 2013 20:33:48 +0000 Subject: fix prob. with overlapping number --- diff --git a/yupana.py b/yupana.py index cc66671..ce2e324 100644 --- a/yupana.py +++ b/yupana.py @@ -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]: -- cgit v0.9.1