This repository contains a simple terminal Snake Game which leverages ncurses library
Steps to build the sources:
$ git clone https://github.com/marcinsztajn/snake.git
$ cd snake
$ mkdir build && cd build
$ cmake ..
$ make
Run the game with the following command:
./snake
This code might run correctly but is not optimized whatsoever. The project was written for fun purposes.
↑ - turn up
↓ - turn down
← - turn left
→ - turn right
p - pause the game
Pressing down the arrow button speeds up the snake movement