Skip to content

feat(tetris): local records table (Top 5, best combo, max lines) - #12

Closed
DanielGeek wants to merge 1 commit into
mainfrom
worktree-agent-a542d254c7bb789e7
Closed

DanielGeek wants to merge 1 commit into
mainfrom
worktree-agent-a542d254c7bb789e7

Conversation

@DanielGeek

Copy link
Copy Markdown
Owner

Saves Top 5 scores (name field at game over) in localStorage (tetris-records, tetris-best), shown on the start menu and game-over/win overlay, highlights new entry, Reset records button, tracks best combo / max lines.

Anchors touched in game.js: globals (maxCombo, recordsBox), scoreClear, showStartMenu, showOverlay (one line hiding #records), endGame, winGame (+ new records block after it), init, top of keydown handler (ignores INPUT targets). index.html: #records in .overlay-box. style.css: --record var + records styles appended.

Verified with node vm simulation (no test suite). Code review findings were pre-existing issues (uncapped dt, tint on garbage) plus undo not restoring maxCombo; left untouched.

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
python-projects Ready Ready Preview Oct 2, 2026 3:08am UTC

@DanielGeek

Copy link
Copy Markdown
Owner Author

Merged locally into main-2 (merge commits add4b68, e9caa25, 8b4f961; pushed to origin/main-2). Closing this PR and deleting its branch.

@DanielGeek DanielGeek closed this Oct 2, 2026
@DanielGeek
DanielGeek deleted the worktree-agent-a542d254c7bb789e7 branch October 2, 2026 16:08

This branch was successfully deployed

1 active deployment
Preview — c4d67ad7 Deployed Oct 2, 2026 by vercel[bot]
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