The Nerdy Sixty | (54/60) Classic Snake Game | Solution

Play the classic Snake game in a terminal. How can you launch a version of Snake on the command line?

Hint 1: Look for “snake” in the bsdgames package or use the `nsnake` program.

Hint 2: `sudo apt install bsdgames` then run `snake`, or install `nsnake` for a modern version.

 

Solution:

You can play Snake in the terminal by installing the game. On Debian/Ubuntu, `sudo apt install bsdgames` and then running `snake` will start a simple ASCII Snake game. Alternatively, installing `nsnake` provides a similar curses-based Snake game in the terminal.

 

 


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

WordPress Cookie Notice by Real Cookie Banner