Coder Social home page Coder Social logo

snake's Introduction

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.

snake's People

Contributors

troglobit avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.