Giter Club home page Giter Club logo

hangman-game's Introduction

Hangman-Game

A fun attempt at creating a simple hangman game using ReactJS

Rules of the game

The aim of the game is to figure out the hidden word by guessing it letter by letter. The player has a limit of 10 wrong guesses, after which they lose. Once all the letters from the hidden word have been found, the game is won.

Game Mechanics

Once on the game launches, every letter entered will count as a guess. The correct guesses appear in the blue boxes, while the wrong guesses are listed at the bottom. If a correct letter is entered twice, an alert message will pop-up to indicate the letter has already been used.

Screenshots

UI: Screenshot from 2021-12-11 17-07-45

Correct word guess:

Screenshot from 2021-12-11 17-09-22

Incorrect word guess:

Screenshot from 2021-12-11 17-09-35

Help section:

Screenshot from 2021-12-11 17-09-42

How to install the game

Download the ZIP file of the code or Git Clone from your terminal. Then, navigate to the directory of the downloaded file, inside 'Hangman-game'. Using your text editor or your terminal, type npm install. This will setup the node_modules folder (make sure you are in the same directory where the package.json file is located)

Launching the game

Once the install is complete, run npm start to launch the game in development mode. This will launch the game in the browser with server http://localhost:3000.

Launching via Heroku

Click the link to play via Heroku - https://hangman-app626.herokuapp.com/

Credit

By Dan-Samuel Moleka

hangman-game's People

Contributors

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