Skip to content

a fun and interactive web-based hangman game where players can test their word-guessing skills.

Notifications You must be signed in to change notification settings

ahmednasser111/hang-man

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project is a web-based implementation of the classic word guessing game Hangman.

Features:

  • Guess a hidden word letter by letter.
  • Difficulty increases with each wrong guess, with a visual representation of a hanging man.
  • Audio cues for successful and failed guesses.
  • Play again functionality after a win or loss.
  • Word selection from various categories stored in a JSON file (words.json).

Getting Started:

  • Open Demo in your browser to start the game.

Technologies Used:

  • HTML: Provides the structure of the webpage.
  • CSS: Styles the visual elements of the game interface.
  • Javascript: Implements the core game logic, including word selection, guess handling, win/lose conditions, and audio cues.

Project Structure:

  • index.html: The main HTML file containing the game interface and references to CSS and Javascript files.
  • style.css: The stylesheet file that defines the visual styles for the game elements.
  • main.js: The Javascript file containing the core game logic.
  • words.json: A JSON file containing a list of words categorized into different topics.

Further Enhancements:

  • Difficulty levels with varying numbers of allowed wrong guesses or word lengths.
  • Ability to choose the word category.
  • Keeping track of wins and losses.

Credits

  • Hangman graphics and sound effects sourced from Mixkit.
  • Developed by [Ahmed Nasser] (GitHub Profile).

About

a fun and interactive web-based hangman game where players can test their word-guessing skills.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published