Skip to content

The Snake Game is a fun and interactive game where the player controls a snake that moves around the screen, consuming food to grow longer. The game ends when the snake collides with itself or the boundaries of the game area.

License

Notifications You must be signed in to change notification settings

omkar-103/Snake-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game

Welcome to Snakee Game! This project is a simple implementation of the classic Snake game using HTML, CSS, and JavaScript.

Table of Contents

Introduction

Snakee Game is a fun and interactive game where the player controls a snake that moves around the screen, consuming food to grow longer. The game ends when the snake collides with itself or the boundaries of the game area.

Game Screenshot

Game Screenshot

Features

  • Classic snake game mechanics
  • Responsive design for various screen sizes
  • Score tracking
  • Simple and intuitive controls

Getting Started

Prerequisites

To run Snakee Game, you need a web browser that supports HTML5, CSS3, and JavaScript.

Installation

  1. Clone the repository:
    git clone https://github.com/omkar-103/Snake-Game.git
  2. Navigate to the project directory:
    cd Snake-Game
  3. Open index.html in your web browser to start the game.

Usage

  • Use the arrow keys (↑, ↓, ←, →) to control the direction of the snake.
  • The objective is to eat the food that appears on the screen. Each time the snake eats the food, it grows longer.
  • The game is over if the snake runs into the boundaries of the game area or collides with itself.

Game Rules

  • The snake can move in four directions: up, down, left, and right.
  • The snake's length increases by one unit for each piece of food it eats.
  • The game ends if the snake collides with the walls or itself.

Customization

You can customize the game by modifying the following files:

  • index.html: Structure of the game
  • css/style.css: Styling of the game elements
  • js/index.js: Game logic and functionality

Example Customizations

  • Change the size of the game board
  • Modify the speed of the snake
  • Adjust the appearance of the snake and food

Contributing

Contributions are welcome! If you have suggestions for improvements or new features, please create an issue or submit a pull request.

Steps to Contribute

  1. Fork the repository.
  2. Create a new branch:
    git checkout -b feature-branch
  3. Make your changes and commit them:
    git commit -m "Description of changes"
  4. Push to the branch:
    git push origin feature-branch
  5. Create a new pull request.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Demo

Check out the live demo of Snakee Game here.


Enjoy the game! If you have any questions or need further assistance, feel free to contact Omkar.

Happy coding!

About

The Snake Game is a fun and interactive game where the player controls a snake that moves around the screen, consuming food to grow longer. The game ends when the snake collides with itself or the boundaries of the game area.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published