10pm: Throwback Gaming - Play Classic Snake in Your Terminal

It's break time, and what better way to take a quick mental pause than by playing a classic game? Snake, a beloved and addictive game, can be enjoyed right in your terminal. Let's dive into the world of Snake and learn how to install and play it, bringing back a wave of nostalgia.

What does this article replace?

This tutorial presents an in-terminal alternative to online or mobile versions of the classic Snake game.

How long will it take to set up?

With a quick 5-minute setup, you'll be navigating your snake through obstacles and chasing high scores.

2 out of 5 stars

Difficulty Rating:

Playing an old-school game like Snake directly from the command line? That's a 2/5 on the difficulty scale. It's more retro than challenging, but still quite a cool trick!

Step 1: Installing Snake

To install Snake, we'll use the nsnake package. If you're on macOS and using Homebrew, simply open your terminal and run the following command:

brew install nsnake

This command will install the Snake game on your system.

Step 2: Starting the Game

Once installed, you can start playing Snake by running the following command in your terminal:

nsnake

The Snake game will launch, and you'll see a snake represented by a series of characters. Your goal is to control the snake and guide it to eat the food, growing longer and avoiding collisions with the walls or itself.

Step 3: Playing Snake

To control the snake, use the arrow keys on your keyboard: up, down, left, and right. The snake will move in the corresponding direction.

The objective is to eat the food (represented by a dot) without running into any obstacles. As the snake eats the food, it grows longer. Be careful not to collide with the walls or the snake's own body, as doing so will end the game.

Continue playing until the snake crashes or fills the entire screen. Try to beat your previous scores and challenge yourself to achieve a high score!


Snake is a timeless classic that continues to captivate players of all ages. With Snake installed in your terminal, you can enjoy a quick gaming break and let nostalgia take over. Relish the simplicity and addictive nature of this beloved game during your downtime.

Enjoy the charm of this timeless game as you play a quick round of Snake, right in your terminal. It's a perfect way to relax and reset your mind.

Remember, not all terminal commands are work-related. Sometimes, they're just plain fun!