Hangman
Public domain classic
Guess the word before the drawing is finished.
At a glance
- Words
- 786 entries in five categories: Animals 193, Countries 157, Food 167, Sports 82 and Science 187. Fourteen words sit in two categories and turkey in three, so there are 770 different words
- Category
- Pick one, or Random, which picks one of the five for each new word
- Misses
- Six are allowed. The seventh ends the round
- Controls
- Tap the on-screen letters or type on a keyboard. Esc pauses
- Score
- Your current run of wins. A loss scores 0 and resets the run
- Saves
- Your run of wins and your best run, in this browser only
- Cost
- Free, no account
How this Hangman plays
- The word appears as one blank per letter. Words run from 2 letters (ox) to 13 (liechtenstein, skateboarding and weightlifting), and every one is plain letters, with no spaces or hyphens.
- A right letter fills every blank it matches. A wrong one adds a stroke to the drawing: the post, the beam, the rope, the head, the body, the arms and last the legs.
- Each letter can be tried once. Its key greys out, it joins the Used list under the word, and pressing it again costs nothing.
- Fill every blank to win. On the seventh miss the round ends and the word is shown.
- The category is named above the drawing from the start of each word.
- Each word is drawn at random from its category, so one you just had can come up again.
Letters that pay off in this list
The rule test counted how many of the 770 words contain each letter. A leads with 430, then E with 382, R 325, N 320, I 315, O 289, L 264 and T 259. At the far end, J is in 12 words, Q in 13, X in 14 and Z in 25.
- Open with A or E. A is in more than half of the words and E in about half, so either is likely to fill a blank.
- R, N and I come next, each in more than 300 words.
- Leave J, Q, X and Z until the blanks point to them. Each is in fewer than one word in 30.
- Double letters pay twice. A right letter fills every copy, so in a word like banana one A uncovers three blanks.
For a puzzle built from numbers instead of letters, try Sudoku.
Runs of wins
Your score is the length of your current run: 1 for the first word found, 2 for the next, and so on. A loss puts it back to 0. Leaving a word part way through with New does not count as a loss, so the run carries on. Your longest run is kept as your best score.
Known limits
- No hints, and no choice of word length or difficulty.
- If the category menu still has keyboard focus, typed letters are ignored until you click the game area.
- On a 390 by 844 screen the on-screen keys fill four rows at the bottom, each key 42 by 44 pixels, and the Pause button drops to a second line where it overlaps the category note.
- At 1280 by 720 the letter keys start 743 pixels down an 848-pixel game area, below the bottom of the window until you scroll.
- Switching tabs pauses the round.
- Blocked storage means your run and best run are forgotten when the page closes.
How it was built and checked
- AI tool
- Codex
- First committed
- 2026-10-14, in a batch of 10 classic games
- Size
- One HTML file of 181 lines, no game libraries
- Rounds of changes
- 1, from the build record
- Checked at build
- The build check counted the word list (786 entries), guessed one word to a win and seven wrong letters to a loss, and ran the drawing code against a stand-in page at three screen sizes. It names real browser rendering, physical touch input and full human playthroughs as not verified
- Checked since
- 2026-11-11: a new rule test (1,609 checks covering the word list and its letters, every one of the 770 words won and lost through the game's own guess code, repeated letters, the run of wins, the category menu, and the on-screen keys and typing), and an automated browser check of the local build at 1280 by 720 and 390 by 844. Each time it pressed Play, missed with on-screen letters, found the word, pressed Play Again, missed seven times to lose and started again. At desktop size it chose Food from the menu and also typed letters. At phone size it answered the cookie notice first and played on Random
- Played on a phone
- 2026-11-11, a full game on a real phone before this page went live
Embed Hangman on your site
Free to embed. Please keep the credit link.
<div style="position:relative;padding-top:75%;max-width:640px"><iframe src="https://aivibecodedgames.com/games/hangman/" title="Hangman (free browser game)" style="position:absolute;inset:0;width:100%;height:100%;border:0" loading="lazy" allow="fullscreen" allowfullscreen></iframe></div> <p><a href="https://aivibecodedgames.com/play/hangman/">Play Hangman free</a> on AI Vibe Coded Games</p>
How it was vibe coded
ToolCodex
Rounds of changes: 1
First committed2026-10-14
The opening prompt
Make Hangman with a built-in list of at least 300 common English words in 5 categories (animals, countries, food, sports, science) chosen by the player or random. Draw the gallows on canvas in 7 stages, show used letters, on-screen keyboard for mobile, win and lose screens revealing the word, streak counter saved. Keep the drawing friendly, not gruesome (a stick figure is fine).
Game controls
- Type letters or tap the on-screen keyboard
The game brief includes touch controls for phones.
Open the game on its own