Coder Social home page Coder Social logo

hangman-cli's Introduction

Hangman-CLI

Overview

Hangman-CLI is a hangman Node.JS command-line game using Class building feature using JavaScript ES6 Syntax.

This game also uses the inquirer npm package for User Interface and File System for word libray reading.

Logic Diagram

Structure Diagram

The game used as different types of classes to build the architecture:

Class Word: Used to create an object representing the current word the user is attempting to guess. This should contain word specific logic and data.

Class Letter: Used for each letter in the current word. Each letter object should either display an underlying character, or a blank placeholder (such as an underscore), depending on whether or not the user has guessed the letter. This should contain letter specific logic and data.

Function GetWord: Used to read the word text file to get a random word from library for the user to guess.

Main program: Used inquirer to interface with user to guess a letter and show update and result.

Hangman Game Demo

Game Demo

hangman-cli's People

Contributors

lichen777 avatar

Stargazers

Shashwat Agrawal avatar Louise Cerdeira avatar

Watchers

 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.