GithubHelp home page GithubHelp logo

mawais54013 / constructor-word-guess Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 8.41 MB

This program is a Dinosaur Themed Hangman game using Terminal and Node.js. Note that is program can only work on Terminal with Node installment and a few required npm packages.

Home Page: https://mawais54013.github.io/Constructor-Word-Guess/

JavaScript 50.31% HTML 45.06% CSS 4.63%

constructor-word-guess's Introduction

Constructor-Word-Guess

This program is a Dinosaur Themed Hangman game using Terminal and Node.js. Note that is program can only work on Terminal with Node installment and a few required npm packages.

Dino-Hang-Man

Portfolio

Images

The following is a pic of the program in action with the user guessing the letters and it displays them while also showing the remaining guesses. Program

Technology Used

  • Javascript
  • Node.js
  • HTML
  • CSS
  • Terminal
  • UIKit
  • NPM

Code Snippets

  1. This codes checks each of the user's input with each of the letters in the current word. If there is a match, then it replaces that letter.
for(var i = 0; i<word.length; i++)
{
    // after checked then correct is shown and then word is updated with underscore for the remaining letters
    if(text === word[i])
    {
        console.log("Correct");
        place[i] = text
        y = place.toString();
        x = y.replace(/,/g,' '); 
        // area is a length and it is decreased
        area--;
        used.push(text);
        console.log(area);
    
    }
} 

Author

Muhammad Awais

constructor-word-guess's People

Contributors

mawais54013 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.