Skip to content

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++.

License

Notifications You must be signed in to change notification settings

twowind/snake-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake game - Linux terminal version

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++.

Dependencies

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

How to build

To build and run this Snake game, the following steps need to be followed:

  1. Clone the project locally:
git clone https://github.com/twowind/snake.git
cd snake
  1. build
mkdir -p build && cd build
cmake -DCMAKE_BUILD_TYPE=Release .. && cmake --build . && ./main

Controls

Use the arrow keys or the h, j, k and l keys to move the snake left, down, up and right.

License

This project is under the MIT license, which means you are free to use, modify and distribute this project.

About

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++.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published