From 99f107d6f34656d564507a502de9ec1ec65b4a89 Mon Sep 17 00:00:00 2001 From: GregorGott <85785843+GregorGott@users.noreply.github.com> Date: Sat, 30 Jul 2022 21:21:11 +0200 Subject: [PATCH] Added "Word Guessing Game" idea This word-guessing game is an intermediate project idea. --- Projects/2-Intermediate/Word-Guessing-Game.md | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Projects/2-Intermediate/Word-Guessing-Game.md diff --git a/Projects/2-Intermediate/Word-Guessing-Game.md b/Projects/2-Intermediate/Word-Guessing-Game.md new file mode 100644 index 00000000..24b1b1ba --- /dev/null +++ b/Projects/2-Intermediate/Word-Guessing-Game.md @@ -0,0 +1,32 @@ +# Word-Guessing Game + +**Tier:** 2-Intermediate + +A small word-guessing game also known as "Hangman". One player sets a word the other one has to guess. +Every letter is one point, and after a set number of rounds, the points will be counted together, +and the winner will be shown. + +The most difficult thing is the array handling because the entered word needs to be loaded in an array to replace +duplicate characters: if the word is "Hello" and the player enters "L" both ls need to be replaced -> "_ _ L L _". + +Features: +- [ ] User can set the number of rounds. +- [ ] Output array with underscores. +- [ ] Solution array with the solution. +- [ ] Duplicate characters need to be replaced. + +## User Stories + +- [ ] Player 1 can see an `input` text field to enter the word to be guessed. +- [ ] Player 2 can see a `Label` with underscores for each character in the solution. +- [ ] Player 2 can enter one character, and if this character is in the solution, it will be replaced automatically. +- [ ] Player switch (player 2 sets the question and player 1 tries to guess it). + +## Bonus features + +- [ ] Player 2 can enter a String except for one single character. + +## Example projects + +If you want to see how a project like this could look, check [this project out](https://www.github.com/GregorGott/Word-Guesser). +It's a JavaFX word-guessing game.