Skip to content

Simple CLI C++ implementation of Tetris with ncurses

License

Notifications You must be signed in to change notification settings

NickSkier/TetroGAC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple CLI C++ implementation of Tetris with ncurses

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published