...

/

Choose Your Own Adventure

Choose Your Own Adventure

Learn how to combine functions, input, and logic into a simple game.

Now that you can build your own functions and take input, let’s make something fun: a mini adventure game where the user picks the story!

This lesson puts together everything we’ve learned so far: input(), variables, if/else, and functions.

Our first story path

Let’s create a mini-game where we write a function that asks the player to make a choice and reacts based on their answer.

We’ll focus on:

  • How the input() ...