Socket
Socket
Sign inDemoInstall

snake-game-cli

Package Overview
Dependencies
1
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    snake-game-cli

A simple Snake game implemented in Node.js


Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Install size
135 kB
Created
Weekly downloads
 

Readme

Source

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!

Keywords

FAQs

Last updated on 25 Mar 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc