Moved all test functions to cli class
This commit is contained in:
@@ -2,7 +2,10 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from config import *
|
||||
from mayorgotchi import Mayorgotchi
|
||||
from util import Util
|
||||
import names
|
||||
import itertools
|
||||
|
||||
class Kinggotchi:
|
||||
myvillages = []
|
||||
@@ -36,4 +39,8 @@ class Kinggotchi:
|
||||
result = 0
|
||||
for n in self.myvillages:
|
||||
result += n.graveyard
|
||||
return result
|
||||
return result
|
||||
|
||||
def createKingdom(self, startvillages):
|
||||
for _ in itertools.repeat(None, startvillages):
|
||||
self.add_village(Mayorgotchi(Util().make_list_of_Tamagotchis(startnr)))
|
||||
|
||||
Reference in New Issue
Block a user