added code for reading and writing tree data

This commit is contained in:
nickwalton committed 2019-10-25 17:19:53 -06:00
1 parent 7e55a8ad21
commit c01eb5c91f
9 files changed
+169 -85

No files matched your search

+1
View File
@@ -0,0 +1 @@
{"tree_id": "./data_nick_1.csv", "action_results": [{"action": "leave the hospital and see if there is anything outside.", "result": "Outside the hospital you see a worn down road and empty cars. Everything is strangely quiet and you start getting worried. You feel hungry and wonder when the last time you ate was.", "action_results": [{"action": "try to find a working car.", "result": "You find a car with the keys in the ignition and try to start it. Nothing happens. You keep looking and find another car that looks like it might work. You manage to get the engine started. ", "action_results": [{"action": "drive around looking for any people or stores that might have supplies.", "result": "You drive around the town and see many boarded up buildings, but no people. Eventually you find a store that you think might have supplies.", "action_results": [{"action": "go inside the store and see if there are any supplies.", "result": "It looks like the store has been ransacked and all the shelves are empty. You manage to find a package of granola bars and a flashlight behind the counter.", "action_results": [{"action": "eat a granola bar.", "result": "You feel a little bit better. But you're still hungry.", "action_results": [{"action": "eat another granola bar.", "result": "You feel better. You should probably save the rest of your food though.", "action_results": [{"action": "leave the store and get back in the car.", "result": "As you leave the store you notice movement out behind your car. A man steps out with a hungry look in his eyes. His clothes are in tatters and he is carrying a crowbar.", "action_results": [{"action": "run at the man and attack him.", "result": "You run forward to attack the man. His crowbar crashes into your chest and you fall to the ground. He kicks you a few times and then grabs your granola bars and runs off.", "action_results": [{"action": "go after him.", "result": "You go after him. As you try and stand up though you realize you're in extreme pain. You think one of your ribs is broken. You manage to get yourself on your feet, but realize catching him is impossible. ", "action_results": [{"action": "look for something to wrap your chest with.", "result": null, "action_results": []}]}]}, {"action": "ask the man what he wants and where everybody is.", "result": "He looks at you confused. \"What are you stupid? This is the end of the world man!\" he says.", "action_results": [{"action": "say \"What do you mean? I just woke up in a hospital with no memory. What happened?\"", "result": "He responds \"Like I said, the end of the world. When the bombs starting falling three years ago we thought we could pull through. But then the skies turned black, crops started dying and everyone went crazy. Most people died in the first couple months.\" ", "action_results": [{"action": "ask him how he managed to survive.", "result": "He tells you that he was away hunting when it all started happening. He managed to live off the land for the first little while. But after the animals started dying he ran out of food and came to the city.", "action_results": [{"action": "ask him if you two can work together. ", "result": "The man shakes his head. \"Hardly enough food for one person. I've only lived this long by looking after myself.\" He turns and starts walking away.", "action_results": [{"action": "run after the man and tell him you'll both do better together.", "result": "He stops and thinks about it for a second, then says, \"Fine. I guess there might be advantages to working together.\" ", "action_results": [{"action": "ask him where he thinks we should go next.", "result": "He tells you there is a house on the road that looked undisturbed that might be worth checking out. ", "action_results": [{"action": "start going towards the house. ", "result": "You are walking towards the house. You reach an intersection. There is a police station on one corner an office building on another. The house is another half mile down the road. ", "action_results": [{"action": "keep going towards the house. ", "result": "You keep walking and eventually reach the house. You see a two story house that looks fairly undisturbed. There's a garage on the right and a path to the backyard on the left. ", "action_results": [{"action": "go around the house to the backyard.", "result": "You go to the backyard of the house. There's a dirty grill and an overturned slide. There's a door to the house on the back porch.", "action_results": [{"action": "open the back door into the house.", "result": null, "action_results": []}]}]}]}]}]}, {"action": "leave the store and get back in your car.", "result": "You think about what the man said. How is this possible? Why were you in that hospital and what should you do now?", "action_results": [{"action": "drive back to the hospital to see if you can find any clues. ", "result": "As you pull in to the hospital parking lot the car sputters and dies. It's out of fuel an slows to a halt. ", "actionLine truncated