This project is a simple implementation of the classic Tetris game built using HTML, CSS, and JavaScript. The code was generated with the help of an AI language model, ChatGPT by OpenAI.
- Randomly generated Tetrimino pieces
- Keyboard controls for moving and rotating pieces
- Clearing lines when they are filled
- Updating scores based on the number of lines cleared
- Increasing levels as the game progresses
- Faster piece drop speed on higher levels
- Clone or download the repository.
- Open the
index.html
file in your web browser. - Use the arrow keys to move and rotate the falling Tetrimino pieces:
- Left arrow: move the piece to the left
- Right arrow: move the piece to the right
- Down arrow: speed up the piece's fall
- Up arrow: rotate the piece
- The game will automatically increase the level and speed as you clear lines.
- The game is over when a new piece cannot enter the playfield.
This Tetris game was developed with the assistance of ChatGPT, an AI language model created by OpenAI.
This project is licensed under the MIT License. See the LICENSE
file for more information.