mirror of
https://github.com/NickSkier/TetroGAC.git
synced 2026-03-07 05:37:50 +03:00
Simple CLI C++ implementation of Tetris with ncurses
- C++ 81.2%
- C 17%
- Meson 1.8%
| src | ||
| .gitignore | ||
| LICENSE | ||
| meson.build | ||
| README.md | ||
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-devandlibncursesw5-dev(for ncurses support)meson,ninja-build(for build system)
How to run
- Clone the repository:
git clone https://github.com/NickSkier/TetroGAC.git
- Enter the cloned directory:
cd TetroGAC
- Configure the build system with Meson:
meson setup build
- Compile the project:
cd build && ninja
- Run the game:
./build/src/tetrogac
- Exit the game using
qorCtrl-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