Skip to content
No description, website, or topics provided.
JavaScript
Branch: master
Clone or download
Latest commit 3c56b28 Feb 22, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
Letter.js
README.md
Word.js
index.js
package-lock.json
package.json
words.json

README.md

wordguess-cli

This is a word guessing game. To install it, type into your shell prompt:

npm install

To run it, type:

node index

You will be presented with a series of blanks (_) indicating how many letters are in the word, and prompted to guess a letter. You can make up to 10 wrong guesses, and you will be prevented from guessing the same letter twice.

The program itself is written in JavaScript for the Node.js runtime. The word list is taken from macOS's /usr/share/dict/words file, converted to JSON format and stored in words.json. Libraries used include the built-in fs module and inquirer. The code itself demonstrates the use of constructors in JavaScript.

You can’t perform that action at this time.