snake-game-cli

1.0.2 • Public • Published

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

  1. Ensure you have Node.js installed on your system.
  2. Clone this repository:

git clone https://github.com/your-username/snake-game.git

  1. Navigate to the project directory:

cd snake-game

  1. 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!

Readme

Keywords

Package Sidebar

Install

npm i snake-game-cli

Weekly Downloads

3

Version

1.0.2

License

MIT

Unpacked Size

5.18 kB

Total Files

4

Last publish

Collaborators

  • 0xshibu