Coder Social home page Coder Social logo

razamsalem / hangman Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 328 KB

My version of creating the beloved game with advanced technologies such as React, Typescript, i18next and Tailwind

Home Page: https://razshangman.vercel.app

JavaScript 3.89% HTML 1.87% TypeScript 90.26% CSS 3.99%
mindgame react tailwindcss typescript game game-development i18n i18next i18next-react

hangman's Introduction

Description

Hangman is a classic word game implemented using React with TypeScript and i18n (internationalization) for language support. The game involves guessing a word by suggesting letters within a certain number of attempts. The player wins if they successfully guess the word before running out of attempts or "hangs" if they exceed the maximum allowed incorrect guesses.

About the Project

This Hangman game was built with React, TypeScript, Tailwind CSS, and i18n to provide an interactive and educational gaming experience. The project showcases the use of modern web technologies to create an engaging and user-friendly game.

How I Created This App

Technologies Used

React: A popular JavaScript library for building user interfaces.

TypeScript: A typed superset of JavaScript that adds static types to the language.

Tailwind CSS: A utility-first CSS framework that simplifies styling and ensures a consistent design throughout the application.

i18n: Internationalization library for supporting multiple languages in the application.

Logical Thinking

Building the Hangman game required careful logical thinking to implement key features:

Word Selection Logic: Choosing words randomly from predefined lists based on the selected language (English or Hebrew).

User Input Handling: Implementing logic to handle user input, validate it, and update the game state accordingly.

Game State Management: Managing the game state, including tracking guessed letters, determining wins or losses, and updating the UI accordingly.

Sound Integration: Adding sound effects for various game events, such as winning, losing, and correct letter guesses.

UI/UX Design: Creating an intuitive and visually appealing user interface to enhance the gaming experience.

Getting Started

Online demo: https://razshangman.vercel.app/

To run the Hangman game locally, follow these steps:

Clone the repository. Install dependencies using npm install. Run the app using npm start. Open the app in your browser at http://localhost:5173. Feel free to explore the code, make improvements, or customize it according to your preferences!

Enjoy playing Hangman!

๐Ÿš€ About Me

I'm a Full-Stack/Frontend developer.

In addition, I'm learning new technologies all the time and implementing them in my projects

Please check my other projects, I promise you will be impressed ๐Ÿ˜‰

Screenshots

App Screenshot

App Screenshot

App Screenshot

App Screenshot

hangman's People

Contributors

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