Skip to content

mylescarey2019/Word-Guess-TS-Node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Word-Guess

TypeScript / Node version of Presidential themed name guess game

Written in TypeScript, utilizing: ES6, classes, OOP patterns, Node.js, npm inquirer package

Description

This node.js app has command line interface for playing a hangman style game using the US President names as a word set.

TypeScript features used

  1. Core types: string, number, boolean, array
  2. Classes types, getters, setters
  3. union type, alias type, enum type, undefined type
  4. public, private, and readonly properties
  5. typescript type inference
  6. tsconfig.json, node module resolution

Game Format

  1. User is presented with a random presidential name to guess showing letters as underscores initially
  2. User guess letter via keyboard - results reveiled
    1. letter not in name
    2. letter in name - underscores replaced with letter
    3. letter already used - list of previsouly used letters shown
    4. letter in name and solved the word - message followed by next word
    5. repeat above until pool of presidential names exhausted.
    6. replay of the game will provide randomized order of names

Details:

Example walkthru GIF (shows abreviated 3 word test) :

word-guess-node-test

Getting Started

Native and NPM Packages Used

  1. inquirer - for interactive command line response on command typos

Dependencies

  • none

Installing

  • none necessary

Executing program

  • open terminal session
    1. run program: node app.js
      1. follow in terminal instructions and prompts for play

Authors

Myles Carey mylescarey2019@gmail.com

Version History

  • 1.0 - Initial Release - TypeScript version based of previous vanilla JS version
  • 1.1 -

License

Acknowledgments

About

TypeScript Node version of Word Guess Game

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published