reverted overview
This commit is contained in:
20
kinggotchi.py
Normal file
20
kinggotchi.py
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
from config import *
|
||||
from mayorgotchi import Mayorgotchi
|
||||
import names
|
||||
import random
|
||||
|
||||
class Kinggotchi:
|
||||
myvillages = []
|
||||
name = ''
|
||||
|
||||
def __init__(self):
|
||||
self.name = names.get_last_name()
|
||||
|
||||
def add_village(self, mayor):
|
||||
self.myvillages.append(mayor)
|
||||
|
||||
def show_kingdom(self):
|
||||
result = 'I am Kinggotchi '+str(self.name)+'.\nThese are the '+str(len(self.myvillages))+' Villages in my Kingdom:\n'
|
||||
|
||||
Reference in New Issue
Block a user