Skip to content

dannephew/snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Project Name:

Snake

Description:

Snake is a video game that first appeared in 1997 on the Nokia 6110. Today, numerous programmers have created their own editions of the classic game, available online. I chose to build Snake because I hoped to recreate a beloved childhood game with my own personal touches.

Getting Started:

You can play the game here!

Instructions:

The snake is controlled by the arrow keys on a player's keyboard and gains a new segment for every piece of food it consumes. The player loses if the snake collides into obstacles, the border, or itself. The player wins by consuming all food on the board.

Wireframe:

alt text

Screenshots:

alt text alt text

Technologies Used:

HTML, Javascript, CSS

Next Steps:

  • Add pleasing color scheme and snake title
  • Create main page when window opens
  • Create popups for instruction and win/lose messages
  • Create two-player functionality
  • Create different levels for one-player snake game that increases in difficulty

What I Learned:

  • Anything can be coded if I put in the time and effort
  • Pseudocode is highly important to avoid going backwards and editing code when a new function is added
  • Hard coding of any kind should be avoided. For instance, writing in the specific board length and width into functions makes it hard to add multiple levels that change in difficulty as the board length and width increase.

Credits:

The snake gif is from gifer.com

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published