This is a classic Snake game developed using HTML, CSS, and JavaScript. The objective of the game is to control the snake and eat apples to grow longer without colliding with the game boundaries or the snake's own body.
- Access the game here or run the following commands in your terminal:
npm install
node server.js
This will start the game server on port 3000.
- Use the arrow keys to control the snake's direction: up arrow (↑) to move up, down arrow (↓) to move down, left arrow (←) to move left, and right arrow (→) to move right.
- The goal is to eat apples to increase your score and the snake's length. Avoid colliding with the game boundaries or the snake's body, as it will result in game over.
- You can restart the game at any time by clicking the "Restart" button.
The Snake game requires the following dependencies to be installed:
- Node.js
- npm (Node Package Manager)
If you would like to contribute to this project, feel free to fork the repository and submit pull requests with improvements, bug fixes, or new features.
The Snake game utilizes the following technologies and resources:
- HTML5
- CSS3
- JavaScript
- Audio files for game sound effects
This project is licensed under the MIT License.