A CLI Snake Game written in C
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-03-18 11:40:03 +02:00
.gitattributes Initial commit 2026-03-18 11:27:37 +02:00
.gitignore Initial commit 2026-03-18 11:27:37 +02:00
LICENSE Initial commit 2026-03-18 11:27:37 +02:00
README.md Update README.md 2026-03-18 11:38:56 +02:00
snake.c Default size 2026-03-18 11:39:55 +02:00

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)

Images

image