This is a Snake game that runs on Linux terminals. The game is written in C++, and it is a practice project for me to learn C++.
This Snake game depends on the ncurses library, make sure you have it installed on your system. You can install it using the following command:
sudo apt-get install libncurses5-dev libncursesw5-dev
To build and run this Snake game, the following steps need to be followed:
- Clone the project locally:
git clone https://github.com/twowind/snake.git
cd snake
- build
mkdir -p build && cd build
cmake -DCMAKE_BUILD_TYPE=Release .. && cmake --build . && ./main
Use the arrow keys or the h, j, k and l keys to move the snake left, down, up and right.
This project is under the MIT license, which means you are free to use, modify and distribute this project.