Skip to content

In this repo I demonstrate working with arrays, constructor functions and recursive functions to bring a word game to life in the console.

Notifications You must be signed in to change notification settings

dointhedev/CLI-Nodejs-Word-Guess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLI-Nodejs-Word-Guess

Example of working with Javascript, Nodejs, Arrays, Constructor Functions and Recursive Functions.

This repo is functionality in-complete — PRs and issues welcome it's 90% done!!

Project Overview

In this project I demonstrate working with arrays, constructor functions and recursive functions to bring a word game to life in the console.

Getting started

To get the Node server running locally:

  • Clone this repo (GIT)
  • Install Nodejs on your Mac (Download)
  • npm install to install all required dependencies
  • node index.js to start the game.

Dependencies

  • inquirer - A collection of common interactive command line user interfaces.
  • random-words - random-words generates random words for use as sample text. We use it to generate random blog posts when testing Apostrophe.
  • fs - Gives you the abilty to read and write files.
  • jsonfile - Easily read/write JSON files.

Instructions on how to play the Word Game!

  1. You will be asked for your name
  2. You will then be given chances to guess the word.
  3. Guess the word and you live.
  4. Once all your lives are done you are dead :(

Enjoy!

About

In this repo I demonstrate working with arrays, constructor functions and recursive functions to bring a word game to life in the console.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published