Choose Your Own Adventure Game
For my project in AP Computer Science class, I created a game where the player can choose his path to escape prison. Out of almost 30 pathways, only three will get you out of prison.
For this project, I was instructed to make a game where based on the choice of the player, something would happen. It's called a Choose Your Own Adventure game because the player is literally choosing what happens since each decision has a different outcome. Although this project was meant to only practice creating loops and if statements, because I already knew the content from prior coding experience in Python, I challenged myself by making the game very big. At first I created a diagram of how I wanted the game to play out. My idea was to have the player "escape prison" by going through various routes like stealing keys, digging a tunnel, or digging through the cell wall. Then during Thanksgiving break, when I was not spending time with family, cooking, or just talking by the fire pit, I was coding. My game ended up being over 800 lines of code and I was really proud of my finished product. Seeing my friends and even my CS teacher have fun while going through the different scenarios of my game was really rewarding.