A simple game of Hangman. This game uses wordsAPI and dictionaryAPI(Merriam-Webster).
This game features the classic Hangman game style that you can play with friends along with a few extra bonuses, including:
-
checking input to ensure the user/API has only given one word (no spaces or special characters)
-
Two different art styles which will:
- change the background texture and color
- change the font used on the webpage
- change the man being hanged, appropriately to which stage he's in.
-
Solo Mode, which includes:
- using wordsAPI which finds a random word
- using dictionaryAPI to:
- make sure it's a word
- finding the definition to the word, to be used as a hint
- pressing toggle player quickly causes extra blanks to be produced
- set timeout for button to prevent clicks
- webster's API sometimes produces a word without a (shortdef)description
- prevent those words from being used
- fetch full definition
- allow user/API to input phrases, multiple words, words that include hyphens or apostrophes
- make sure special characters/spaces are displayed rather than being guessed
- make sure special characters/spaces don't count toward word checking and word printing
- keep score of player performance
- include timer
- subtract points for wrong letter or using hint
- animate hangman pictures changing
- have pictures sweep/flip in
- have short video of someone actually drawing the figure
- animate win/lose messages
- have modal message instead of alerts for letters already guessed
- add magic mode so players can guess Magic: the Gathering card names
- have an executioner ask "any last words?" and hangman says the word being guessed.
- allow player to pick a category for single player random word generator