reverted overview

This commit is contained in:
luxick
2015-08-23 15:03:45 +02:00
parent aa172606c5
commit f6d1abe23a
3 changed files with 55 additions and 2 deletions

20
kinggotchi.py Normal file
View 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'