GithubHelp home page GithubHelp logo

snake's Introduction

Project for Israeli Techub - The Snake Game

Game description

In this game the player controls a square on a bordered plane. As it moves forward, it leaves a trail behind, resembling a moving snake. The snake has a specific length, so there is a moving tail a fixed number of units away from the head. The player loses when the snake runs into the screen border, a trail or itself.

The snake can eat apples by running into them with its head. Each apple eaten makes the snake longer, so controlling it is progressively more difficult. After an apple is eaten, another one is created at some random point on the board.

In addition, you should let the player choose one of three game levels: Novice, Intermediate and Hard. The level of the game determines the speed in which the snake moves.

At the end of the game show the player its total score (each apple eaten = 10 points). Save the highest score achieved so far in local storage.

Use OO principles in writing your code. Separate the game UI from its logic. Develop each part of the game in a separate class.

All settings of the game should be configurable, such as: board size, number of simultaneous apples on the screen, initial length of the snake, the snake’s speed for each game level, etc. Use local storage to store these settings, and let the user change them via a menu.

snake's People

Watchers

Temo Kiknadze 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.