Skip to content
/ csnake Public

🐍 A bad implementation of the snake game in C & SDL2

License

Notifications You must be signed in to change notification settings

ezioleq/csnake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

12 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

csnake

🐍 A bad implementation of the snake game in C & SDL2

Building

Dependencies

The single dependency is SDL2 which you have to have installed on your system to be picked up by the CMake during compilation. So you will need CMake as well. Some C compiler also will be useful.

Arch install guide

sudo pacman -S --needed base-devel cmake sdl2

Ubuntu / Debian install guide

sudo apt-get install build-essentials cmake libsdl2-dev

Compilation

mkdir build && cd build
cmake ..
make -j$(nproc)

Running

Start the csnake executable from the build folder defined before.

About

🐍 A bad implementation of the snake game in C & SDL2

Topics

Resources

License

Stars

Watchers

Forks