Skip to content
Alex Simon edited this page Apr 1, 2014 · 14 revisions

The game

Make-Snake is a fun introduction to the Linux shell, with a command line game that lets you change sizes and themes. It’s a great teaching tool for beginners, easy to contribute to, and a fun activity for anyone who wants to create their own version of the classic game.

How to install it

Kano OS

Make-Snake is installed by default in Kano OS.
Package name: make-snake
Executable path: /usr/bin/make-snake
Sources: /usr/share/make-snake

Other environments

Follow the development instructions

Options

Usage: snake [options]

Options:
  -h, --help            show this help message and exit
  -b BOARD, --board=BOARD
                        Board size (s | m | l)
  -s SPEED, --speed=SPEED
                        Game speed (s | m | f)
  -t THEME, --theme=THEME
                        Game theme (classic | minimal | jungle | 80s | custom)
  -m, --ModeTutorial    Closes game after game over
  -e, --editor          Enter editor mode

Controls

  • Keyboard arrows > Move
  • Q > quit

Tutorial

The aim of this project is to teach the use of a basic command with different arguments. The executable can be found under /bin/make-snake.
List of challenges:

  1. python snake > launch the game
  2. python snake -b m > change the board size through a parameter
  3. python snake -s f > change the speed through a parameter
  4. python snake -t jungle > Select a theme
  5. python snake -e > Enter on Editor mode
  6. python snake -t custom > Load a the theme created
  7. python snake --help > Learn about the help parameter
  8. Playground > free mode

Clone this wiki locally