/nodehangman

A command line Node.js Hangman game

Primary LanguageJavaScript

Hipster Hangman (Node.js edition)

screen shot 2016-10-30 at 4 21 56 pm

This Hangman game is built with Node.js and runs exclusively in the command line. The logic in this Hipster Hangman game is really similar to the Vanilla Javascript game I built. The main difference is that this game incorporates JavaScript constructors.

Dependencies

Clone this repo to your desktop and run npm install to install its 2 dependencies.

  • Colors: Used to generate colored text in the console

  • Inquirer: Used to prompt users to guess a letter in the word

Game Play

  • Run node main.js to play

  • The player will be prompted to guess a letter. The game has built in validation to make sure that a single lowercase letter is guessed.

  • If the player guesses an incorrect letter, guesses remaining goes down one. Making a repeat guess doesn't have a penalty. The game will just let the player know that it's a repeat guess and to guess again.

  • screen shot 2016-10-30 at 4 26 02 pm

Game Results

  • Lose: If the player uses up all 10 guesses before figuring out the word, the player loses.

  • Win: If the player fills in every blank of the word before running out of guesses, they win!

  • screen shot 2016-10-30 at 4 32 44 pm