Snake is the classic arcade game in which a player controls a snake guiding it towards food and away from walls or itself.
The game should listen to the arrow keys, and the snake should grow as it consumes food. Everytime the snake eats food the score on screen increases by 10.
When the snake collides with itself or a wall, the game ends. The final score is displayed on screen and a message to refresh the page is given.
Play it live: Snake
- HTML5
- CSS
- Vanilla JavaScript
- css
- style.css
- js
- snake.js
- index.php
- README.md
Rename index.php file to index.html to play game on your local computer.
Kevin Martínez Montero
Senior Front End Engineer