Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Anurag Rana
Anurag Rana

Posted on • Originally published atpythoncircle.com on

     

Classic snake game in Linux terminal

You must have played the classic snake game on feature phones likeNokia 1100.

Now you can again play the same game in Linux terminal.

For this, you need to install nsnake package by running below command in terminal.

sudo apt-get install nsnake

After the package is installed, run the game by running nsnake command.

Use the up and down arrow keys to change to game mode to Borders On and Borders Off.

Use left and right arrow keys to change the speed.

Press enter or space to start the game once you are done with settings.

You can exit the game by pressingq key.

Rules are the same as they were in the classic game.

If you collide with yourself (snake), you die. Game over.

Download the latest version of this game from Github.

More from Author:

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Backend Developer. Working on Python and Java. Writes about Python and Django on https://www.pythoncircle.com
  • Joined

More fromAnurag Rana

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp