Git Product home page Git Product logo

hangman-game's Introduction

Hangman Game

Hangman game screenshots

GitHub License MIT

Welcome to Hangman, a simple React app built with TypeScript! This project is a digital version of the classic word-guessing game, where players attempt to guess a hidden word letter by letter.

Technologies Used

  • React: A JavaScript library for building user interfaces.
  • TypeScript: A statically-typed superset of JavaScript, adding type annotations and other features.
  • Vite: A fast, opinionated web dev build tool.
  • SCSS: Syntactically Awesome Style Sheets for styling the app.
  • HTML: Hypertext Markup Language for structuring the app.

How to play

  1. Choose game language (Currently, the app supports English and German)
  2. Enter a letter in the input field (You can use keyboard letters or click the buttons on the screen)
  3. If the letter is correct, it will be revealed in the word. Otherwise, a part of the hangman drawing will appear (and wrong letter will be disabled)

Letters screenshot

  1. Keep guessing letters until you either complete the word or the hangman drawing is fully displayed.If you complete the word, you win the game and the confetti animation will appear!

Confetti screenshot

  1. You can reset the game at any time by clicking the "Reset" button, refresh the page or simply press Enter

Development

You'll need to install dependencies and start the Vite development server:

npm install

npm run dev

You'll find the running game at http://localhost:5173

Testing

Tests are written with the React Testing Library. Run all of them via

npm run test

Contributions

Contributions to the Hangman React app are welcome! If you have any suggestions, bug reports, or feature requests, feel free to submit an issue or a pull request.

License

This project is licensed under the MIT License. Feel free to use, modify, and distribute the code as per the terms of the license.


Thank you for checking out the Hangman React app! Have fun playing and improving your word-guessing skills. If you have any questions, feel free to reach out. Happy gaming!

hangman-game's People

Contributors

ikorotkaya avatar

Stargazers

Anatoli Makarevich 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.