Skip to content

Attempt at implementing snake using Web technologies; JavaScript and Canvas.

Notifications You must be signed in to change notification settings

marinasundstrom/snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake

Implementation of the classic game: Snake.

There are some bugs and cases that are not handled.

Rules

When the snake encounters a snack it will grow in length, and the snack count will increase.

When the snake is running into itself the game is reset and the count also.

When the snake goes outside the playing field it emerges on the opposite side.

Technologies

  • JavaScript
  • HTML, Canvas

Background

This project was actually inspired from a colleague of mine who had been building a snake game while being sick.

I re-implemented his algorithm and used Canvas instead.

Why?

Because I saw it as a fun exercise. :)

Screenshot

Screenshot

About

Attempt at implementing snake using Web technologies; JavaScript and Canvas.

Resources

Stars

Watchers

Forks