dionyziz/canvas-tetris ? reverse-engineered prompt

Reverse engineered prompt

Build me a simple Tetris game that runs in the browser with HTML5 canvas.

I want a clean single page game where the blocks fall, the player can move and rotate them, complete lines disappear, the score goes up, and the game ends when the stack reaches the top. It should feel like a classic Tetris clone, with simple styling, basic sound effects, and smooth gameplay that works without any backend.

Please make it easy to open and play right away from the browser, and keep the code straightforward since this is meant to be a small educational project. If you need to check anything about browser support or canvas behavior, look up current docs online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab