Skip to content

feat(arcade): add Hangman built-in game + leaderboard#49

Merged
ralyodio merged 1 commit into
mainfrom
feat/arcade-hangman
Jun 22, 2026
Merged

feat(arcade): add Hangman built-in game + leaderboard#49
ralyodio merged 1 commit into
mainfrom
feat/arcade-hangman

Conversation

@ralyodio

Copy link
Copy Markdown
Contributor

What

Adds Hangman to the arcade as a built-in, leaderboard-backed TUI game (alongside Snake).

  • Endless mode: each solved word banks points (longer words + unused guesses score more) and deals a fresh word with full lives.
  • The run ends when a single word exhausts all 6 wrong guesses; the total persists for members under the hangman score key. Guests play without persisting (same as Snake).
  • ASCII gallows (0–6 misses), masked word, A–Z input (case-insensitive), space for next word, r restart, q back.

Leaderboard

Generalized board to take a game name; split the single "Leaderboard" row into Leaderboard — Snake and Leaderboard — Hangman.

Tests

New hangman_test.go covers solve+score, repeat-guess dedupe, death after 6 misses, and lowercase input + advance. go build ./..., go vet, gofmt, and go test ./plugins/arcade/ all clean.

No schema change — the scores table is keyed by an arbitrary game string.

🤖 Generated with Claude Code

Hangman joins Snake as a built-in, leaderboard-backed TUI game (PRD §5.1).
Endless mode: each solved word banks points (longer words and unused guesses
score more) and deals a fresh word with full lives; the run ends when one word
exhausts all six wrong guesses, persisting the total for members under the
"hangman" score key. Guests play without persisting, same as Snake.

Generalize the leaderboard board to take a game name and split the single
"Leaderboard" row into per-game "Leaderboard — Snake" / "Leaderboard — Hangman"
entries.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

vu1nz Security Review

0 finding(s) in PR #?

No security issues found.

@ralyodio ralyodio merged commit c5489a4 into main Jun 22, 2026
5 checks passed
@ralyodio ralyodio deleted the feat/arcade-hangman branch June 22, 2026 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant