Skip to content

0xshibu/snake-game-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published