Class Resources

for HCC classes taught by Rylan Schubkegel

Course Homepage

Choose Your Own Adventure

Due 11/27 at 11:59

Choose Your Own Adventure (CYOA) novels allow readers to make choices that impact the story. In this project, you will make your own CYOA game.

Your program must meet the following specifications:

This is a great chance to flex your creative muscles 💪🏻 Have fun with it!!

Extra Challenges (optional)

Example Story

Here is a simple example of a 2-page story dictionary (remember, yours must be at least 10 pages):

story = {
  1: {
    "text": "Hello, world! It's a great day for looping, don't you agree?",
    "options": [
      {
        "text": "I agree 👍🏻",
        "page": 1
      },
      {
        "text": "I disagree 👎🏻",
        "page": 2
      }
    ]
  },
  2: {
    "text": "Well, we can agree to disagree.",
    "options": [
      {
        "text": "THE END",
        "page": None
      }
    ]
  }
}

Example Output

Hello, world! It's a great day for looping, don't you agree?

    1) I agree!
    2) I disagree!

>> 1

Hello, world! It's a great day for looping, don't you agree?

    1) I agree!
    2) I disagree!

>> 3

Invalid choice "3"

Hello, world! It's a great day for looping, don't you agree?

    1) I agree!
    2) I disagree!

>> 2

Well, we can agree to disagree.

    1) THE END

>> 1

Submit Assignment

When your program meets the requirements, download and submit your .py file here:

Submit Assignment