From 4ff1a520758b79e3878d211229980c0b8cbeebdc Mon Sep 17 00:00:00 2001 From: luxick Date: Fri, 6 Nov 2015 21:12:13 +0100 Subject: [PATCH] Switched to pyhton 3 --- config.py | 5 +++-- mayorgotchi.py | 2 +- names/__init__.pyc | Bin 2134 -> 2188 bytes test.py | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/config.py b/config.py index 8a1fa6e..7da0719 100644 --- a/config.py +++ b/config.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- # 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 startnr = 60 # The amount of points a Tamagotchi loses per tick @@ -29,4 +29,5 @@ max_workpower = 6 min_recovery = 10 max_recovery = 20 # Define if simulation should be started paused or running -start_paused = False +start_paused = True + diff --git a/mayorgotchi.py b/mayorgotchi.py index 133b782..8737f21 100644 --- a/mayorgotchi.py +++ b/mayorgotchi.py @@ -44,7 +44,7 @@ class Mayorgotchi: # 3 = Bathing # 4 = Playing # 5 = Working - result = [[] for x in xrange(6)] + result = [[] for x in range(6)] for n in self.mygotchis: if n.status is 'Idle': diff --git a/names/__init__.pyc b/names/__init__.pyc index 66cc7efb800af5db4be0b04cdfcc54a7a1ec7b34..0b146576e3265ce18a0356da655e49d371404f6c 100644 GIT binary patch delta 219 zcmca6&?Csf{F#^Q@n@T`jU2leC7l@<81yspb5r$mN-Hvxv-R`K^PF??OH(G#V>aH* r%G8NR$>w>?Yw<_}P0*j*#oC0|4*kjAY&`^2h_Ro;tHOA)I)^?0HXBI8 delta 161 zcmeAXye7cG{F#^Qht9^(jU2le1*{kt81yspb5r$mN-HvxvnOw0Hr~v~)QKsxc?0uW iOi`eE{mDyNn=lP>VB3vN(0sBt`!P%jptX}@IrIVW&oX)d diff --git a/test.py b/test.py index ac2886f..990881c 100644 --- a/test.py +++ b/test.py @@ -14,7 +14,7 @@ ticks = 0 king = Kinggotchi() 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))) while True: