A fully responsive, modern twist on the classic Tetris game built using React and Tailwind CSS. Drop blocks, score points, and challenge your reflexes — right in the browser.
- Classic Tetris gameplay with 7 colorful Tetrominoes
- Real-time score tracking
- Game Over screen and restart option
- Live leaderboard saved via
localStorage - Next piece preview
- Polished UI with Tailwind CSS styling
- Fully responsive design (mobile + desktop)
- React
- Tailwind CSS
- localStorage API
- React Canvas for board rendering
Clone the repo and run locally:
git clone https://github.com/ftabhay/tetris-game.git
cd tetris-game
npm install
npm startThe game will run at http://localhost:3000.
| Key | Action |
|---|---|
| ← / → | Move left/right |
| ↓ | Soft drop |
| ↑ | Rotate piece |
| Space | Hard drop |
This project is open-source and available under the MIT License.
Made with ❤️ by Abhay M V