Skip to content

Snake CLI is a free and open-source snake game that runs in the terminal, written using C++ and ncurses library

License

Notifications You must be signed in to change notification settings

baguskokow/Snake-CLI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake-CLI

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

Installation

From Package

Ubuntu (Focal & Jammy)
  • 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  

From Source

  • Install ncurses library
Ubuntu
$ sudo apt install libncurses5-dev libncursesw5-dev  
OpenSUSE
$ 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  

Usage

  • Run Game
$ snake  

Control

  • 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

About

Snake CLI is a free and open-source snake game that runs in the terminal, written using C++ and ncurses library

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published