Simple CLI C++ implementation of Tetris with ncurses
  • C++ 81.2%
  • C 17%
  • Meson 1.8%
Find a file
2025-01-08 13:18:06 +03:00
src Remove: old key for debuggin that was used to add lines 2025-01-08 13:17:47 +03:00
.gitignore Update: .gitignore 2025-01-08 13:18:06 +03:00
LICENSE Initial commit 2024-12-08 21:58:25 +03:00
meson.build Initial commit 2024-12-08 21:58:25 +03:00
README.md Update README.md 2025-01-07 15:47:48 +03:00

TetroGAC

Simple C++ implementation of Tetris. Runs in the terminal with a UI in ncurses.

Features (WIP)

  • Gravity
  • Move left and right
  • Soft drop
  • Hard drop
  • Basic rotation
  • Wall and floor Kicks
  • Full lines deletion
  • Game Over
  • Piece preview
  • Score system
  • Levels
  • Piece colors
  • Random Generator (7 bag)
  • Hold
  • Ghost piece

Requirements

  • libncurses5-dev and libncursesw5-dev (for ncurses support)
  • meson, ninja-build (for build system)

How to run

  1. Clone the repository:
git clone https://github.com/NickSkier/TetroGAC.git
  1. Enter the cloned directory:
cd TetroGAC
  1. Configure the build system with Meson:
meson setup build
  1. Compile the project:
cd build && ninja
  1. Run the game:
./build/src/tetrogac
  1. Exit the game using q or Ctrl-C.

Controls

  • KEY_LEFT/KEY_RIGHT: Move block left/right
  • KEY_DOWN: Soft drop
  • Space: Hard drop
  • KEY_UP: Rotate cloclwise
  • E: Rotate counterclockwise
  • Q: Quit game