Skip to content
Snippets Groups Projects
Commit 914c5315 authored by Joe Stephenson's avatar Joe Stephenson
Browse files

Created dictionary for saving game data

parent 44eaaf90
Branches
No related tags found
No related merge requests found
No preview for this file type
No preview for this file type
......@@ -316,6 +316,12 @@ def main():
print(
"YOUR TASK IS TO FIND ALL OF THE ITEMS AND BRING THEM BACK TO RECEPTION. GOOD LUCK!"
)
saved_dict = {
"current_room": current_room,
"rooms_state": rooms,
"inventory": inventory,
}
print(saved_dict)
complete = False
# Main game loop
while not complete:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment