mirror of
https://github.com/Codrax/CLI-Snake-Game.git
synced 2026-09-29 15:28:12 +03:00
A CLI Snake Game written in C
- C 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .gitattributes | ||
| .gitignore | ||
| LICENSE | ||
| README.md | ||
| snake.c | ||
CLI-Snake-Game
A CLI Snake Game written in C
Compilation / Installation
Linux / macOS:
gcc -O2 snake.c -Wall -o snake
sudo mv snake /usr/bin
Parameters
| Parameter | Description |
|---|---|
| -help, -h | Display help information and commands |
| --version, -v | Show version information |
| --infinity | Infinity game mode |
| --no-initial-apple | Do not add apple on game start |
| --no-apple-on-eat | Do not add apple on eat |
| --sizeX | Size of table |
| --sizeY | Size of table |
| --resolution | Resolution of each cell |
| --time-apple | Milliseconds betwen each apple add (0-disabled) |
| --time-move | Milliseconds betwen each movement (0-disabled) |