Written in TypeScript, utilizing: ES6, classes, OOP patterns, Node.js, npm inquirer package
This node.js app has command line interface for playing a hangman style game using the US President names as a word set.
- Core types: string, number, boolean, array
- Classes types, getters, setters
- union type, alias type, enum type, undefined type
- public, private, and readonly properties
- typescript type inference
- tsconfig.json, node module resolution
- User is presented with a random presidential name to guess showing letters as underscores initially
- User guess letter via keyboard - results reveiled
- letter not in name
- letter in name - underscores replaced with letter
- letter already used - list of previsouly used letters shown
- letter in name and solved the word - message followed by next word
- repeat above until pool of presidential names exhausted.
- replay of the game will provide randomized order of names
-
Github project : Word-Guess-Node Repository
-
- inquirer - for interactive command line response on command typos
- none
- none necessary
- open terminal session
- run program: node app.js
- follow in terminal instructions and prompts for play
- run program: node app.js
Myles Carey mylescarey2019@gmail.com
- 1.0 - Initial Release - TypeScript version based of previous vanilla JS version
- 1.1 -