A complete implementation of the classic Tetris game built entirely with vanilla HTML5, CSS3, and JavaScript - no external libraries or frameworks required. This project serves as an excellent educational resource for students learning game development, object-oriented programming, and modern JavaScript concepts.
You can play the game directly in your browser without downloading anything:
To play the game locally, follow these steps:
- Clone the repository or download the ZIP file
- If downloaded as ZIP, extract the files
- Navigate to the project directory
- Open
index.htmlin any modern web browser - No additional installation or build process required!
- Enter: Start the game or restart after game over
- Space: Pause/Resume the game
- Arrow Left (โ): Move tetromino left
- Arrow Right (โ): Move tetromino right
- Arrow Up (โ): Rotate the tetromino clockwise
- Arrow Down (โ): Soft drop (faster descent)