Skip to content
/ snake Public

Simple text-based snake game. Written in C.

Notifications You must be signed in to change notification settings

ranzuh/snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

snake

Classic snake game written in C using ncurses library. It was made for a programming class. Try to eat the Apple by changing snakes direction using WASD-keys. If you eat the Apple you're snake grows longer. Game ends if you hit the walls or if the snake hits itself. Try to get as long as you can!

Click the image below to see a demo video

ScreenShot

compiling

Mac:

Mac OS should have ncurses headers already so this should work:

gcc snake_v3.c -o snake -lncurses

Linux:

If your linux distro does not have the headers you need to get them first:

sudo apt-get install libncurses5-dev

Then you should be able to compile with:

gcc snake_v3.c -o snake -lncurses

run the game

After compiling you can run the game with

./snake

About

Simple text-based snake game. Written in C.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages