moved make_tamagotchi_list to Util

This commit is contained in:
luxick
2015-08-26 15:37:59 +02:00
parent 7186918752
commit 9862998242
4 changed files with 13 additions and 14 deletions

18
test.py
View File

@@ -11,24 +11,18 @@ import curses
# Temporary test section
ticks = 0
def make_list(number):
tmp = []
for n in range(0,number):
tmp.append(Util().make_Tamagotchi())
return tmp
king = Kinggotchi()
for n in range(0, 30):
king.add_village(Mayorgotchi(make_list(startnr)))
ui = cursesUI(True)
for n in range(0, 30):
king.add_village(Mayorgotchi(Util().make_list_of_Tamagotchis(startnr)))
while True:
ui.build_screen(king,ticks)
ui.build_screen(king, ticks)
if not ui.paused:
king.step()
ticks += 1
if not ui.running:
break
break