A simple Hangman Game.
This is a coding practice application, intended for Code Clubs.
-
User Actions
- User can guess letters in the phrase by typing on the keyboard
- User can reset the game
-
App Actions
- At the start of a game, App will get a phrase from the internet, and display it with all letters hidden
- App will update the phrase appearance by revealing letters, as they are correctly guessed
- App will ignore non letter keys, and ignore case
- App will show the number of guesses left
- App will decrement (count down) the number of guesses each time an incorrect letter is guessed
- When the phrase is revealed the app will stop accepting guesses
- When the remaining guesses reaches 0 the app will stop accepting guesses
- If the phrase is fully revealed, the App will indicate the User has won
- If the number of guesses reaches 0 and not all letters are revealed, the app will indicate the User has lost
- The App will start a new game when the user clicks the reset button
-
HTML
- element layout
- section / div
- spans
- buttons
- paragraphs
- flexbox
-
CSS
- margin and padding
- colors
- font styling
- borders
- alignment
-
Javascript
- understanding and responding to events
- DOM manipulation
- strings
- lists
- list filtering
- conditionals
- fetch API
-
Software Development Skills
- Iterative Development
- Event driven programming
- interacting with internet APIs
https://jsbeginners.com/javascript-hangman-app-project/
Stages in italics are optional challenges
- Fetching a phrase from internet, print in body
- show stylised phrase in layout
- reset button
- hide phrase and keyboard events
- add guess count
- add win / loss states