Linux is intriguing for a while, but after a certain period, you will have mental burnout while continuously staring at the terminal screen. To claim yourself, you usually take a break or have a sip of dark coffee and get back to work.
What if I say that you have an additional option to chill out your brain from the terminal burnout with a classical snake game that you used to play on your Nokia devices?
sssnake game for Linux terminal
The sssnake game is one of the other terminal-based games on Linux. However, the game gives you the feel of an old snake game that you used to play on a Nokia device.
Suggestion: Mazter Game: A Maze in Your Linux Terminal
The installation is simple and straightforward, just make sure to have a Git package and a ncurses-devel package for compilation from Git on your Linux system. Otherwise, fire up the following command to install them depending upon your Linux distribution.
$ sudo apt install git libncurses-dev #On Debian, Ubuntu, Linux Mint
$ sudo yum install git ncurses-devel #On RHEL, CentOS, Fedora, Rocky Linux, AlmaLinux
$ sudo pacman -Sy git ncurses #On Arch, Manjaro, Endeavor Linux
After both the packages are installed, run the following commands in series to grab the source from the Git repository and compile and install it as shown.
$ git clone https://github.com/AngelJumbo/sssnake.git
$ cd sssnake
$ sudo make install
After the installation is completed, you can verify the game is successfully installed on your system by following the below command.
$ sssnake -h
Below is the output of the above command.
Tada! The Snake game is installed, and now it’s time to explore it.
Playing the sssnake game on Linux
To launch the game, you can execute the following command in your Linux terminal.
When the game starts, you can control the snake head using the WASD, HJKL, or arrow keys. However, you can use a flag with the sssnake command to make it more enjoyable.
-aflag (autoplay mode) allows the snake to catch the square/block by itself without any interaction.
-Sflag is used to set it as a screensaver.
-sflag is used to control the speed of the snake.
-jflag is used to add random blocks to increase the difficulty of this game.
Below are some examples of how you can try to make your game more enjoyable.
- Increase the speed by 10x by using the following command.
$ sssnake -s 10
- The following command will give you some blocks to avoid hitting the snake’s head.
$ sssnake -s 10 -j 5
- If you want to let the snake feed the square by itself, then follow the below command to play the game in automatic mode.
$ sssnake -s 10 -j 5 -a
- Fire up the following command to use this game as a screensaver.
$ sssnake -s 10 -j 5 -S
You can modify the flags independently of each other as per your requirements. Until then, I will see you in the next article.
Innovative tech mind with 12 years of experience working as a computer programmer, web developer, and security researcher. Capable of working with a variety of technology and software solutions, and managing databases.