This was one for a school project that was to create something creative about medieval and/or renaissance literature. I had been experimenting with manipulating strings in python beforehand so I thought I a choose-your-own adventure game was plausible.

It assigns a truth value to each of the three stories, and sets that to false after the story has been read. After all of the stories are false, it displays a game over message.

Initially, it used match statements to decide what to display and used += to add 1 to the value of storyCount after a story had been read. Ideally, the game would display a game over message after storyCount == 3. I ran into some insurmountable issues with the way Python's variable scope works, so after a long debugging session with mentors, I transitioned to the current boolean-based code that I have now.

I am proud of the way I was able to acknowledge when my plan wasn't working, ask for help, and change my plan. I think that is a useful skill to have learned for future hacking.

Next, I might add turtle or ASCII graphics to further immerse the user.

Built With

Share this project:

Updates