tamagotchis now feed and wash each other

This commit is contained in:
luxick
2015-07-26 19:06:09 +02:00
parent af5e4465d4
commit 3e80d61fc4
7 changed files with 109 additions and 44 deletions

21
test.py
View File

@@ -2,34 +2,27 @@
from mayorgotchi import Mayorgotchi
from util import Util
import time
# Temporary test section
# Variable Definition
decayaspeed = 1
ticks = 50
ticks = 200000
show_pct = True
list = []
for n in range(0,10):
for n in range(0,50):
list.append(Util().make_Tamagotchi())
mayor = Mayorgotchi(list)
print mayor.give_status(show_pct)
for n in range (0, ticks):
mayor.step()
print(chr(27) + "[2J")
print '----------------------After '+str(n)+' ticks------------------------------\n'
print '----------------------After '+str(ticks)+' ticks------------------------------\n'
print mayor.give_status(show_pct)
print mayor.give_status(show_pct)
for n in range (0, ticks):
mayor.step()
print '----------------------After another '+str(ticks)+' ticks------------------------------\n'
print mayor.give_status(show_pct)
time.sleep(0.5)