Skip to content

Play snake game in the terminal. Written in C using ncurses library.

Notifications You must be signed in to change notification settings

dqrk0jeste/ncurses-snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

play snake in your terminal

preview image

dependencies

  • gcc
  • ncurses library

on arch you can install them with:

sudo pacman -S ncurses

build

gcc main.c -lncurses -o snake

usage

./snake -h 10 -w 20

height and width options are optional; if not provided terminal screen height and width will be used.

keybinds

  • h, j, k, l or arrow keys to move
  • r to restart
  • q to quit

About

Play snake game in the terminal. Written in C using ncurses library.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages