github.com/troglobit / snake

Micro Snake, based on Simon Huggins snake game.

Commit log
3e82504 ⎇ masterNever hard-code use of -Werror, it's a user flag Joachim Wiberg 3 years ago
a403bee Add basic .gitignore Joachim Nilsson 11 years ago
bd4e4e1 Center image and add missing link. Joachim Nilsson 11 years ago
ee4fb02 Update README to Markdown and clean it up a bit ... Joachim Nilsson 11 years ago
fe360c9 Rename README --> README.md Joachim Nilsson 11 years ago
8ab8997 🏷 1.0.1Bump version for minor release v1.0.1 Joachim Nilsson 13 years ago
b99191a Update contact info and server locations. Joachim Nilsson 13 years ago
910c453 🏷 1.0.0Official v1.0.0 release, blessed by Simon Huggins! :-) Joachim Nilsson 17 years ago
0299730 🏷 1.0.0-rc1Change version number to match tag name. Joachim Nilsson 17 years ago
0f64291 Slight change in formatting of copyright strings. Joachim Nilsson 17 years ago
README.md

Micro Snake

ASCII Image of Micro Snake

The theme started with Micro Tetris continues with this version of the snake (worm) game. It is very small and only utilizes ANSI escape sequences to draw the board. Hence, very suitable for embedded devices.

Introduction

From Wikipedia:

Snake is a video game released during the mid 1970s and has maintained popularity since then, becoming somewhat of a classic. The first known microcomputer version of Snake, titled 'Worm', was programmed in 1978 by P. Trefonas (USA) on the TRS-80 computer, and published by CLOAD magazine the same year. This was followed shortly afterwards with versions from the same author for the PET and Apple II computers. A microcomputer port of Hustle was first written by P. Trefonas in 1979 and published by CLOAD magazine [2]. This was later released by Milton Bradley for the TI-99/4A in 1980.

Playing the game

The aim of the game is to collect the gold ($), avoid cactuses (*) and borders, including colliding with the tail of the snake itself. As you collect gold, the snake gets longer, thus increasing the likelihood of crashing into yourself. When all gold has been collected you are hauled to the next level without any warning. For each new level the snake gets longer and the amount of gold and cactuses increases.

You get scored according to the length of the snake and the number of cactuses on the screen. The speed increases every 5 levels. You get a bonus of 1000 points when you complete each level.

Note: There is no concept of lives. Once you hit an obstacle, that's it, game over.

To move the snake:

a - Up,
z - Down,
o - Left
p - Right

f - Left turn
j - Right turn

q - Quit the game at any time.

There is a define in snake.h you can change if you want to alter these settings. Make sure you do not have caps lock on, otherwise the keys will fail to respond.

Origin & References

Micro Snake is based on an original implementation by Simon Huggins. Current maintainer is Joachim Nilsson.

The orignal version of the source code is available as the first commit of the official Git repository. Note that Simon's original use library functions that are not available on all systems -- it was designed using Borland C++ Builder / Turbo C. Most of this has been refactored during the porting effort to GNU/Linux. There has also been some game design changes to improve the overall feeling.