Project
Hangman JavaScript
Hangman JavaScript is a browser-based Hangman game built with plain HTML, CSS, and JavaScript.
FinishedSource code (opens in a new tab)
- Category
- Browser Game
- Started
- Jun 2024
- Language
- JavaScript
Stack
- JavaScript
- HTML
- Sass
- CSS
- Game
- DOM
About this project
The game picks a random word and shows its hint. The player guesses one letter at a time; each wrong guess adds to the hangman drawing, and six mistakes end the round. A result overlay announces a win or loss and offers a replay.
Features
- Random word selection with a hint for each word
- Letter-by-letter guessing
- Hangman image that updates with each mistake
- Six incorrect guesses before the game ends
- Win/lose overlay with a replay button
Purpose
- Practice DOM manipulation and game state in vanilla JavaScript
- Build a complete interactive game without frameworks
- Style the interface with Sass
Scope & Limitations
- Static, single-player game with a built-in word list
- No build step, backend, or score persistence
Tech Stack
- Language: JavaScript
- Markup and styles: HTML, CSS, Sass
Notes
- Source code: https://github.com/Felipeact/Hangman-Javascript