This project is a console-based Tetris game developed in C++, following object-oriented programming principles. The game features classic Tetris mechanics, including falling tetrominoes, piece rotation, scoring, and game-over conditions.
๐ฏ Classic Tetris Gameplay: Includes seven standard tetrominoes (I, O, T, S, Z, J, L).
๐ฎ Game Board: A 10x20 grid representation for smooth gameplay.
๐ Piece Movements: Move left, right, rotate, and drop pieces.
โก Gravity & Speed Increase: Tetrominoes fall at a constant speed, increasing as the game progresses.
๐ Collision Detection: Prevents pieces from overlapping or moving out of bounds.
๐ Line Clearing & Scoring: Full rows are removed, and points are awarded.
โ ๏ธ Game Over Detection: Ends when blocks reach the top.
๐ฏ Left Arrow (โ) : Move left
๐ฏ Right Arrow (โ) : Move right
๐ฏ Up Arrow (โ) : Rotate piece
๐ฏ Down Arrow (โ) : Soft drop
๐ฏ Spacebar : Hard drop
๐ฏ Escape (ESC) : Pause or Quit
- โ C++ Compiler (GCC, Clang, or MSVC supporting C++17 or later)
- โ Make (Optional)
โโโ main.cpp # Main source code file
โโโ project_2_tetris.pdf # Project description & requirements
โโโ README.md # Documentation & setup guide
๐น Uses 2D vectors for the game grid representation.
๐น Implements real-time user input handling for smooth gameplay.
๐น Supports both Windows and Linux platforms with cross-platform compatibility.
๐น Object-Oriented Design (OOP) ensures modular and extensible code.
๐ก Have ideas or improvements? Fork this repository and submit a pull request! Let's build an even better Tetris together. ๐
๐ Developed for IT206 Data Structures Lab - Project 2 ๐ฎ
- ๐จโ๐ป Tirth Patel (202401157)
- ๐จโ๐ป Raj Patel (202401152)
- ๐จโ๐ป Shlok Patel (202401156)
- ๐จโ๐ป ** Prakriti Pandey (202401164)**
- ๐ Special thanks to all contributors!
- No flickering issues, making it super smooth ๐๏ธ
- Works directly in Windows & Linux terminals ๐
- Classic Tetris mechanics for a nostalgic experience ๐ต
- Easy to install and play โ just compile & run ๐ฏ
- Improve your reflexes and challenge yourself! ๐
If you like this project, star the repository, share it with your friends, and enjoy endless Tetris fun! ๐
Happy Coding & Gaming! ๐ฎ๐ฅ