| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Hello and welcome to the home of the ncurses snake game written in neovim by one enthusiast in his spare time!
![]() |
![]() |
|---|---|
![]() |
![]() |
![]() |
![]() |
Game relies on the
If You use MacOS You can install newcurses with homebrew simply by
brew install ncurses
Short answer: It depends.
For example, if You are using Ubuntu You can install newcurses and
g++ by
sudo apt-get install libncurses5-dev libncursesw5-dev clang
If You say I use Arch btw often, You can try
sudo pacman -S ncurses g++
If Your distro isn't mentioned here, try to use google:
how to install ncurses in *put Your distro name here* how to install g++ in *put Your distro name here* how to get cmake running on *put Your distro name here*
Enter desired directory and run
git clone https://github.com/Dolfost/snake-cpp cd snake-cpp
It will create the directory with name snake-cpp and enter it. Then You have to compile the game.
To build the game You can:
cmake -B build; cmake --build build ./build/src/snakegame
It will create the game executable snakegame in the build/src directory.
Open the terminal window not smaller than 42 lines by 80 columns
To start the game You can execute
./build/src/snakegame
in the git directory root.
If You are new to the game (probably You are), I recommend You to start game with the --help or -h option, so You can get used to it.
./build/src/snakegame --help
Game files will be located in ../var relative to game executable (build/var if following this guide).
If You find any bugs or unexpected behaviors or just want to contribute to the snake-cpp, You are welcome at the issues tab.
| Back | FazBrowse Home | New Git URL |