nSnake: Play The Classic Snake Game In Linux Terminal

The terminal is more fun when you add games to it. Here's how to play the classic snake game in the Linux terminal.

You know what was the best thing about old Nokia handsets back in early 2000’s? The Snake Game. I had wasted considerable time on this silly yet addictive game. While the good old Nokia phones are replaced by smartphones today and Snake game is replaced by other silly addictive games such as Temple Run etc Snake still has its own charm.

There are several Snake games available on Android, iOS and Web. And one such game is available in Linux terminal as well. Yes, you heard it right, Linux Terminal it is.

nSnake: Classic Snake game in Linux Terminal

nSnake is the Linux terminal version of the classic game developed with ncurses by Alexandre Dantas. It is available for almost all Linux distributions but in this article we shall see how to install nSnake in Ubuntu and other similar distributions.

To install nSnake in Ubuntu and Linux Mint, open a terminal and use the following command:

sudo apt-get install nsnake

Once installed, you can use the following command to run the program:

nsnake

It will start the game in terminal which may look like the following screen. If you wonder why my Ubuntu Terminal looks different than the usual purple one, I am using Numix theme which is one of the best themes for Ubuntu.

Play Snake game in Linux terminal with nSnake

Playing nSnake is very easy. You can choose the speed of the game as well as whether to keep the borders or not from the start screen. Snake can be controlled using the arrow keys, while you can use P to pause the game and Q to quit the game.

Update: As mentioned by Alexandre, a newer and better version is available on the Git.

Do check our list of best Linux terminal games, if you like more such games.

Top 10 Command Line Games For Linux
You can play games on the Linux terminal. Here are the best command line games for you.

What do you think of nSnake? Have you ever tried it before? What other terminal game you play? Do share your views.

About the author
Abhishek Prakash

Abhishek Prakash

Created It's FOSS 11 years ago to share my Linux adventures. Have a Master's degree in Engineering and years of IT industry experience. Huge fan of Agatha Christie detective mysteries 🕵️‍♂️

Become a Better Linux User

With the FOSS Weekly Newsletter, you learn useful Linux tips, discover applications, explore new distros and stay updated with the latest from Linux world

It's FOSS

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to It's FOSS.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.