emilycrab / snake

A terminal-based game of snake written in C11 using ncurses.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

snake

A terminal-based game of snake written in pure C11 using ncurses.

Instructions

Building & Running

Requirements: POSIX-compliant operating system with libncurses installed.

Run the following command to compile the game:

$ make all

Then you can simply run the resulting executable:

$ ./snake

Controls

To steer the snake you can use WASD or simply the arrow keys. Move the Snake (represented by #) to collect apples (O). You can press Q to quit the game.

Screenshot

screenshot of the game.

Bugs

  • Snake can collide with itself with no repurcussions

License

Licensed under the MIT License.

About

A terminal-based game of snake written in C11 using ncurses.

License:MIT License


Languages

Language:C 95.6%Language:Makefile 4.4%