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
- Host: GitHub
- URL: https://github.com/5tarlight/c-tetris
- Owner: 5tarlight
- License: mit
- Created: 2025-03-07T10:01:22.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-03-14T04:48:53.000Z (3 months ago)
- Last Synced: 2025-03-14T05:28:36.883Z (3 months ago)
- Language: C
- Homepage:
- Size: 71.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.