Giter Club home page Giter Club logo

snake's Introduction

Description:
The goal of the game is to control the snake to eat fruits and also avoid hit the obstacle 
and its own body. Everytime the snake eats a fruit, its length will increase. Also there is 
"life gift" that will appear once every 10 seconds. If the snake hits the "life gift", the 
life count will increase. And when snake hit any obstacle with life count more than one. The 
snake will go back to the start place with original length, and the game will not over.

Controls:
- use command line parameters to change speed and frame (MUST pass both the speed and frame 
  to the command line, the speed range is 1-10 and the frame range is 1-100)
- use 'r' to start/restart the game
- use 'q' to quit the game
- use 'p' to pause the game
- use 'o' to resume the game
- use 'w/a/s/d' to control the snake(w for up, a for left, s for down and d for right)
- use arrow keys to control the snake is also acceptable

Enhancements:
- redraw the snake and the fruit
- include the "life gift" that can increase the snake's life count

Development environment:
ios 10.13.4, c++14 w.vs code 1.23.1

snake's People

Contributors

yuezhuann avatar

Watchers

James Cloos 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.