Skip to content

fabiooo4/cSnake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cSNAKE

This is the classic game of snake for the terminal in C using the ncursesw library.

menu options game

Running the game

To play just execute in your terminal the snake binary found in the releases page.

How to play

  • w or UP to move up

  • s or DOWN to move down

  • a or LEFT to move left

  • d or RIGHT to move right

  • q to quit the game

  • p to pause the game

  • ENTER or q to return to menu when the game is over

Build on linux

Ubuntu

Install the ncursesw library by using:

sudo apt install libncursesw6

To compile the code in C use the standard GCC compiler by including the library:

gcc -o snake snake.c -lncursesw

About

Snake for the terminal made with C

Resources

Stars

Watchers

Forks

Languages