updated tetris game with newer features


Tetris Game

Rules of Tetris

Objective: The goal of Tetris is to score as many points as possible by clearing horizontal lines of blocks. The game ends when the stack of blocks reaches the top of the playing field.

Controls:
Move Left: Left Arrow Key
Move Right: Right Arrow Key
Rotate Counter-Clockwise: Q Key
Rotate Clockwise: W Key
Soft Drop: Down Arrow Key

Scoring: Points are earned by clearing lines. The more lines you clear at once, the more points you earn. Optimal placements that clear multiple lines or fill gaps efficiently will earn additional points.

Features:
– Toggle Music: Click the “Toggle Music” button to turn the background music on or off.
– Control Volume: Use the volume slider to adjust the background music volume.
– Toggle Random Speed: Click the “Toggle Random Speed” button to randomize the drop speed of pieces.
– Toggle Guide: Click the “Toggle Guide” button to show or hide a ghostly version of the block at the bottom where it will land.
– Restart Game: Click the “Restart” button to restart the game.
– Speed Modes: Click the “Linear Speed” or “Exponential Speed” buttons to set the speed increase mode.
– Pause Game: Click the “Pause” button to pause or resume the game.

Score: 0
😊
←: Left
→: Right
↓: Drop
Q: Rotate CCW
W: Rotate CW