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

View File

@@ -20,3 +20,9 @@ class Util:
recovery = random.randrange(min_recovery, max_recovery, 1)
return Tamagotchi(name,hunger,happiness,hygiene,sleep,decayspeed,potential,recovery)
def make_list_of_Tamagotchis(self, number):
tmp = []
for n in range(0,number):
tmp.append(self.make_Tamagotchi())
return tmp