GithubHelp home page GithubHelp logo

krosenk729 / nodman Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 439 KB

CLI Node Hangman Game 'Yo

Home Page: https://raw.githubusercontent.com/krosenk729/Nodman/master/demo.gif

JavaScript 100.00%
cli node-hangman nodejs

nodman's Introduction

Node Hangman

demo

To Use This Game

git clone https://github.com/krosenk729/Nodman.git
cd Nodeman
npm install
node app.js

Game Logic

When setting up a new game

  1. Get a new word
  2. Clear the list of past guesses

When a guess is triggered

  1. Ensure guess is a valid key/character (if not, end)
  2. Check guess is new (if not, end)
  3. Check for guess within letters 3.A If guess is found, letters should be flipped 3.B If guess is found, check to see if this wins the game 3.C If game is won: tell user, increment wins and reset game
  4. Check to see if this ends the game 4.A If lost game: tell user, increment losses and reset game

nodman's People

Contributors

krosenk729 avatar

Stargazers

Andrew Johnson avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.