This is an adventure game that jholtane and I are building incrementally for learning.
- When the game is started, then player gets a gameover message (immediately).
- The player can enter their name, then they get a gameover (with a customized message that includes their name).
- The player is prompted for their name.
- After the player enters their name, they are then prompted for a word that describes their character. The game then praises their attribute. (then they lose).
- The game describes a challenge that the character faces, and how they use their attribute (description word) to overcome it.
- The character faces a challenge of strength (stone blocking their path?). If the character is "strong" then they pass and receive a message (but not a gameover). If they are not "strong", they get a gameover.
- When the character fails the challenge of strength, they get a failure message, but no longer a game over upon failure. The game always results in a gameover (like before).
- The character also faces a challenge of speed (running across a log??). Similar to the challenge of strength, have a success message and a failure message.
- The character does not face both trials. Instead, only one is chosen (at random, 50% chance each).
- There exists a 3rd type of challenge (stamina/wit/intelligence/charm) that is faced if the character does not face either of the previous challenges.
- The character faces 5 trials, randomly selected from the pool of various (3-6 or so) trials we've created.
- There exists a 4th type of challenge.
- (refactor) the challenges exist as separate methods (e.g. trialOfStrength(), trialOfSpeed(), ...)
-
(refactor) there exists a class for challenges. - The challenges are equally likely to occur.
- At the beginning of the game, the character has 3 health.
- After each challenge, the player's current health is printed
- When they fail a challenge, they lose 1 health. After the 5 challenges, if the character has any health remaining, they get the happy ending. If they have no health remaining, they get the bad ending.