Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Updated CountryInstance, removed building instance

  • Loading branch information...
1 parent b582aeb commit 284c80f1e0b349a8cf81f662a53490fb5ef99db0 Ben Ross committed
Showing with 13 additions and 6 deletions.
  1. +13 −6 src/
19 src/
@@ -40,19 +40,26 @@ def enter_country(country_id):
class CountryInstance:
''' Contains state info for a country relating to the current game.
- Keeps track of buildings, questions at buildingo, fact sheets, etc.'''
+ Keeps track of buildings, questions at building, fact sheets, etc.'''
def __init__(self,name,tags,facts,questions):
+ self.buildings
+ self.facts = facts
+ = name
for i in range (len(tags)) :
- makeBuildings(tags[i], questions[i])
+ builings[i] = (tags[i], questions[i])
return None
+ def fact_sheet(fact_array):
+ return None # skeleton code
- '''def makeBuildings(tag):
- new BuildingInstance'''
+ '''def makeBuildings(tag, question):
+ new BuildingInstance(tag, Question)'''
-class BuildingInstance:
+'''class BuildingInstance:
'''Contains info for a building. This will be intiallized when the buildings database and questions databases get queried. An array of buildings will be held in a CountryInstance.
The type is the style of building i.e. cathedral, library etc. Type is also expected to hold the character in the builidng. The Question holds the question-answer pair.'''
def __init__(self, type, Question):
- return None
+''' return None

0 comments on commit 284c80f

Please sign in to comment.
Something went wrong with that request. Please try again.