Snake is a classic arcade game where the player controls a snake that moves around the game board, eating food to grow longer while avoiding collisions with itself and the game board edges. This project implements the Snake game using HTML, CSS, and JavaScript. Done in collaboration with MarcelCostaFerre, as our first Ironhack project.
- Start and control the snake using arrow keys.
- Eat food to grow longer.
- Avoid collisions with the walls and the snake's body.
- Score points for each food eaten.
- Game over when the snake collides with itself or the walls.
- Restart the game with a single click.
- Open the
index.html
file in your web browser. - Use the arrow keys to start the game and control the direction of the snake.
- Eat food to grow longer and score points.
- Avoid colliding with the walls and the snake's body.
- Click the "RESTART" button to start a new game.
- Clone this repository:
git clone https://github.com/your-username/snake-game.git
- Open the
index.html
file in your web browser to play the game.
This project is licensed under the MIT License.