Skip to content

step-archive/snake-RahulPatil-Shiva

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake

This is a simple snake game.

Scenario

The game is almost ready. However, this game doesn't end. There are no terminal conditions that have been written for this game yet.

The game is considered over when:

  1. The Snake hits any of the edges of the viewport.

  1. The Snake eats itself

The red color represents the head of the snake. The blue border represents the edges of the viewport. The rounded blue object represents food.

Objective

Detect the end of the game based on the conditions above. Once the game is over, offer the user a chance to play the game again.

There is no need to implement a server.

Suggestions

  • Consider committing a TODO
  • Commit regularly
  • Use good commit messages
  • Do not break existing functionality
  • Don't use window.alert
  • Consider using python -m SimpleHTTPServer <port_of_your_choice> to host the game locally

About

snake-RahulPatil-Shiva created by GitHub Classroom

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published