git clone https://github.com/krosenk729/Nodman.git
cd Nodeman
npm install
node app.js
When setting up a new game
- Get a new word
- Clear the list of past guesses
When a guess is triggered
- Ensure guess is a valid key/character (if not, end)
- Check guess is new (if not, end)
- Check for guess within letters 3.A If guess is found, letters should be flipped 3.B If guess is found, check to see if this wins the game 3.C If game is won: tell user, increment wins and reset game
- Check to see if this ends the game 4.A If lost game: tell user, increment losses and reset game