/snake-game-js

The classic Snake game 🐍

Primary LanguageJavaScript

Snake Game 🐍🟥

This is a mini project focused on building the classic Snake game. The main objective is to exercise programming logic and concepts of HTML canvas.

How to Play

  • Use the arrow keys to move the snake.
  • The objective of the game is to eat as many fruits as possible without hitting the snake's own body.
  • The snake grows every time it eats a fruit.
  • The game ends when the snake hits the own body.

How to Run

  1. Clone this repository
  2. Open the index.html file in your web browser