Snake CLI is a free and open-source snake game that runs in the terminal, written using C++ and ncurses library; while some people might say, "Working in the terminal is so boring," now there's no more "boring"
when you're working in the terminal because you can play the snake game on your Linux desktop or Linux server!
demo-video-snake.mp4
- Install ncurses library
$ sudo apt install libncurses5-dev libncursesw5-dev
- Download package
$ wget https://github.com/baguskokow/Snake-CLI/releases/download/v1.0.0/snake-cli_1.0.0_amd64.deb
- Install
$ sudo dpkg -i snake-cli_1.0.0_amd64.deb
- Install ncurses library
$ sudo apt install libncurses5-dev libncursesw5-dev
$ sudo zypper install ncurses-devel
Note :
For other distros, you can install the ncurses library using their package manager.
- Clone the repository
$ git clone https://github.com/baguskokow/Snake-CLI.git
- Compile
$ cd Snake-CLI
$ make
- Install
$ make install
- Clean up build files
$ make clean
- Uninstall
$ make uninstall
- Run Game
$ snake
- ↑to move up
- → to move right
- ↓ to move down
- ← to move left
- SPACE to pause game or select (skin)
- ENTER to select menu
- q to quit from menu
- r to reset highest score