Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/yupana.py
diff options
context:
space:
mode:
Diffstat (limited to 'yupana.py')
-rw-r--r--yupana.py11
1 files changed, 6 insertions, 5 deletions
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]: