Snake
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.
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.
HTML, Javascript, CSS
Add pleasing color scheme and snake titleCreate main page when window opensCreate popups for instruction and win/lose messages- Create two-player functionality
- Create different levels for one-player snake game that increases in difficulty
- 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.
The snake gif is from gifer.com