An open API service indexing awesome lists of open source software.

https://github.com/5tarlight/c-tetris

Console tetris built with C
https://github.com/5tarlight/c-tetris

Last synced: 2 months ago
JSON representation

Console tetris built with C

Awesome Lists containing this project

README

        

# Tetris for the Console

This is a simple **cross-platform** Tetris game implemented in C for the console. The game features basic Tetris mechanics, including block rotation, movement, and line clearing. It runs directly in the terminal without requiring any additional graphical libraries.

## Controls

- Left Arrow: Move left
- Right Arrow: Move right
- Up Arrow: Rotate block
- Down Arrow: Move down faster
- Spacebar: Drop block instantly
- Q: Quit the game

## Installation & Execution

1. Clone the repository:

```bash
git clone https://github.com/yourusername/console-tetris.git
cd console-tetris
```

2. Build the project using CMake:

```bash
mkdir build && cd build
cmake ..
make
```

3. Run the game:

```bash
./tetris
```

## Dependencies

This game is built using standard C libraries and does not require any external dependencies.

## License

This project is licensed under the MIT License.