Code Monkey home page Code Monkey logo

hangman's Introduction

Hang Man

I hope you enjoy my version of the class game, Hang Man! This project was created with React, SCSS, and utilizes two REST APIs and Google's Firebase Realtime Database.

Visit Project Here

https://hangmanreactgame.netlify.app/

Get Started

To start, simply press "Start Game" to load the main game page. A useEffect() call will generate a random word, and an associated word hint from the Merriam Webster Dictionary API.

To guess letters in the word, press either the on screen letters, or type the letter on your keyboard. If the letter is in the word, it will be displayed. If not, it will show up as a used letter with a red strikethrough, while both points and the number of turns left will be decremented.

To Win:

Guess the word with up to 6 wrong guesses. Your score will be calculated based on the length of the word, the number of wrong guesses, and whether or not the word hint was displayed.

End Game

At the end of the game, no matter if you win or lose, a modal window will pop up, showing the game word for reference. If you win, congratulations! You can enter your name for the Firebase leaderboard here, and your name, the game word, and your score will be recorded for all to see.

Afterwards, there will be 3 options: Go Home will return to the main page, Play Again will start a new game, and Leaderboard will display the Firebase leaderboard in decreasing score order.

hangman's People

Contributors

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