Matt Carey 7423666546 1. 1. What data needs to be maintained for a single game? What type? Int – Number of each item the player has. Hammer -> removes shackles Key -> Access to courtyard Drugs -> drug guards to pass Int- room number to keep track of players location Char – User’s input for selection of direction 2. What type of user input do you need? How will your program use this input to decide what statement to execute next? User input: Char: n,e,s,w (north, east, south, west) for moving rooms Char: y/n for agreeing or disagreeing with a statement to make a choice 3. What data needs to be maintained for the total player experience? What Type? Room number and items need to be reset each game, and maintained throughout the current game. However, the Char selections will be used once. 4. Is the number of iteration or the total Choose Your Own Adventure known before entering the loop? No. The player could play multiple times, and take a various number of steps to reach the end. What kind of loop should be used? A While loop should be used so once a certain criteria are met then they player can move on. 5. Where will you add randomness to the game? I will make a 30% chance of being caught at the courtyard. This adds to the story of randomly running into guards, and can alter the gameplay by quite a bit. Print-out of example game-play. Welcome to Jail Break In this text RPG you are trying to escape prison You will need to find various objects in order to move to and pass through certain rooms. In each room, you will be prompted with directions North, East, South, and West. Try to keep a mental map of where you are. Good luck, don't get lost! Jail Break -Matt Carey The guard patrolling your cell fell asleep, you manage to crack the door open enough to slip out. Enter 'e' to move east out of your cell. e You see a chamber to the north, east, and south Choose a direction:s Hmm, the door is locked... Maybe if you can find a key... You see a chamber to the north, east, and south Choose a direction:n You see chambers to the east, west, and south Choose a direction:w You see chambers to the north and east Choose a direction:n You found a blacksmith's Hammer! Now you are free from the handcuffs! You see chambers to the east and south Choose a direction:s You see chambers to the north and east Choose a direction:e You see chambers to the east, west, and south Choose a direction:s You see a chamber to the north, east, and south Choose a direction:e You see chambers to the north and west Choose a direction:n You see chambers to the east and south Choose a direction:e You found a dungeon key! Now you can enter locked doors! You see a chamber to the west Choose a direction:w You see chambers to the east and south Choose a direction:s You see chambers to the north and west Choose a direction:w You see a chamber to the north, east, and south Choose a direction:s You see chambers to the north and east Choose a direction:e You see chambers to the east and west Choose a direction:e It appears you have reached the prison courtyard. There is a random possibility of a guard to come through while passing. You see a north, east, and south gate. Choose a gate:n You see chambers to the east and west Choose a direction:w It appears you have reached the prison courtyard. There is a random possibility of a guard to come through while passing. You see a north, east, and south gate. Choose a gate:e You were caught and sent back to your cell. They were dumb enough not to take away your key. The guard patrolling your cell fell asleep, you manage to crack the door open enough to slip out. Enter 'e' to move east out of your cell. e You see a chamber to the north, east, and south Choose a direction:s You see chambers to the north and east Choose a direction:e You see chambers to the east and west Choose a direction:e It appears you have reached the prison courtyard. There is a random possibility of a guard to come through while passing. You see a north, east, and south gate. Choose a gate:e You see chambers to the east and west Choose a direction:e You see a chamber to the east and west Choose a direction:e You see a chamber to the east and west Choose a direction:e That was a close one, there's guards in here! I'm sure if there is something to drug them with, you could pass them You see a chamber to the east and west Choose a direction:w You see a chamber to the east and west Choose a direction:w You see chambers to the east and west Choose a direction:w It appears you have reached the prison courtyard. There is a random possibility of a guard to come through while passing. You see a north, east, and south gate. Choose a gate:n You were caught and sent back to your cell. They were dumb enough not to take away your key. The guard patrolling your cell fell asleep, you manage to crack the door open enough to slip out. Enter 'e' to move east out of your cell. e You see a chamber to the north, east, and south Choose a direction:s You see chambers to the north and east Choose a direction:e You see chambers to the east and west Choose a direction:e It appears you have reached the prison courtyard. There is a random possibility of a guard to come through while passing. You see a north, east, and south gate. Choose a gate:n You see chambers to the east and west Choose a direction:e You see chambers to the north east and west Choose a direction:n You see chambers to the north east west and south Choose a direction:w You found sleeping pills! Now you can now drug guards! You see a chamber to the east Choose a direction:e You see chambers to the north east west and south Choose a direction:s You see chambers to the north east and west Choose a direction:w You see chambers to the east and west Choose a direction:w It appears you have reached the prison courtyard. There is a random possibility of a guard to come through while passing. You see a north, east, and south gate. Choose a gate:e You see chambers to the east and west Choose a direction:e You see a chamber to the east and west Choose a direction:e You see a chamber to the east and west Choose a direction:e You drug the guards and leave the room... You are free! You found the exit! Play again? y/n n Thanks for playing!
© Copyright 2026 Paperzz