Skip to content

Aditya-Dave503/Tetris_Game

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

54 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽฎ Tetris Game in C++ (IT206 DS Lab - Project 2) ๐Ÿš€

๐Ÿ”ฅ Overview

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.

โœจ Features

๐ŸŽฏ 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.

๐ŸŽฎ Controls

๐ŸŽฏ Left Arrow (โ†)   : Move left
๐ŸŽฏ Right Arrow (โ†’)  : Move right
๐ŸŽฏ Up Arrow (โ†‘)     : Rotate piece
๐ŸŽฏ Down Arrow (โ†“)   : Soft drop
๐ŸŽฏ Spacebar         : Hard drop
๐ŸŽฏ Escape (ESC)     : Pause or Quit

๐Ÿ› ๏ธ Installation & Execution

๐Ÿ“Œ Prerequisites

  • โœ… C++ Compiler (GCC, Clang, or MSVC supporting C++17 or later)
  • โœ… Make (Optional)

๐Ÿ“ Project Structure

โ”œโ”€โ”€ main.cpp          # Main source code file
โ”œโ”€โ”€ project_2_tetris.pdf  # Project description & requirements
โ”œโ”€โ”€ README.md         # Documentation & setup guide

โš™๏ธ Technical Details

๐Ÿ”น 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.

๐Ÿค Contributing

๐Ÿ’ก 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 ๐ŸŽฎ


๐Ÿค Collaborators ๐Ÿ†

  • ๐Ÿ‘จโ€๐Ÿ’ป Tirth Patel (202401157)
  • ๐Ÿ‘จโ€๐Ÿ’ป Raj Patel (202401152)
  • ๐Ÿ‘จโ€๐Ÿ’ป Shlok Patel (202401156)
  • ๐Ÿ‘จโ€๐Ÿ’ป ** Prakriti Pandey (202401164)**
  • ๐Ÿ‘ Special thanks to all contributors!

๐Ÿš€ Why Play This Tetris? ๐Ÿ”ฅ

  • 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! ๐Ÿ†

๐Ÿ“ข Share & Support โค๏ธ

If you like this project, star the repository, share it with your friends, and enjoy endless Tetris fun! ๐ŸŽ‰

Happy Coding & Gaming! ๐ŸŽฎ๐Ÿ”ฅ

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%