Switched to pyhton 3
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
# The lenght of one game cycle in milliseconds
|
# The lenght of one game cycle in milliseconds
|
||||||
ticklenght = 0.005
|
ticklenght = 0.001
|
||||||
# Number of Tamagotchis to be created at the start of the simulation
|
# Number of Tamagotchis to be created at the start of the simulation
|
||||||
startnr = 60
|
startnr = 60
|
||||||
# The amount of points a Tamagotchi loses per tick
|
# The amount of points a Tamagotchi loses per tick
|
||||||
@@ -29,4 +29,5 @@ max_workpower = 6
|
|||||||
min_recovery = 10
|
min_recovery = 10
|
||||||
max_recovery = 20
|
max_recovery = 20
|
||||||
# Define if simulation should be started paused or running
|
# Define if simulation should be started paused or running
|
||||||
start_paused = False
|
start_paused = True
|
||||||
|
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ class Mayorgotchi:
|
|||||||
# 3 = Bathing
|
# 3 = Bathing
|
||||||
# 4 = Playing
|
# 4 = Playing
|
||||||
# 5 = Working
|
# 5 = Working
|
||||||
result = [[] for x in xrange(6)]
|
result = [[] for x in range(6)]
|
||||||
|
|
||||||
for n in self.mygotchis:
|
for n in self.mygotchis:
|
||||||
if n.status is 'Idle':
|
if n.status is 'Idle':
|
||||||
|
|||||||
Binary file not shown.
2
test.py
2
test.py
@@ -14,7 +14,7 @@ ticks = 0
|
|||||||
king = Kinggotchi()
|
king = Kinggotchi()
|
||||||
ui = cursesUI(True)
|
ui = cursesUI(True)
|
||||||
|
|
||||||
for n in range(0, 30):
|
for n in range(0, 50):
|
||||||
king.add_village(Mayorgotchi(Util().make_list_of_Tamagotchis(startnr)))
|
king.add_village(Mayorgotchi(Util().make_list_of_Tamagotchis(startnr)))
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
|
|||||||
Reference in New Issue
Block a user