snake-game-cli
v1.0.2
Published
A simple Snake game implemented in Node.js
Downloads
6
Readme
Snake Game
Snake Game is a classic arcade game where you control a snake to eat food and grow longer while avoiding collisions with walls and the snake itself.
Installation
- Ensure you have Node.js installed on your system.
- Clone this repository:
git clone https://github.com/your-username/snake-game.git
- Navigate to the project directory:
cd snake-game
- Install dependencies:
npm install
How to Play
To start the game, run the following command:
npm start
Use the following keys to control the snake:
- W: Move the snake up.
- A: Move the snake left.
- S: Move the snake down.
- D: Move the snake right.
- Q: Quit the game.
The objective is to eat as much food as possible without colliding with walls or the snake itself. Each time the snake eats food, it grows longer. The game ends when the snake collides with a wall or itself.
Enjoy playing Snake Game!