Question: Implementation Details I will provide starter code in the form of a short function that loads the game dictionary from the file. The dictionary will
Implementation Details
I will provide starter code in the form of a short function that loads the game dictionary from the file.
The dictionary will be of this form:
game
'locations': a dictionary of locations
'people': a dictionary of people
'clues': a dictionary of clues
'startinglocation': 'a location name as a string'
The locations dictionary will be of this form the places are just an example but the :
locations
'Rome': connections : Cardiff 'London'
'startsunlocked': True or False,
'carmen': True or False
'Cardiff':
'London':
'Svalbard':
Each location will have a connections list of strings with the locations that you can go to if they are unlocked. 'startsunlocked' is a boolean with whether the game starts this location as unlocked, meaning you can travel there without gathering any clues or talking to anyone. Finally 'carme
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
