Skip to content

Sai-Mohitha/CodeAlpha-snake-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Snake Game in Python

Snake Game Demo

Description

This is a simple implementation of the classic Snake game using Python and the Pygame library. The game allows the player to control a snake, eat food, and grow in length while avoiding collisions with the boundaries of the game screen and the snake's own body.

Features

  • Snake Control: Use arrow keys to control the snake's direction (up, down, left, right).
  • Scoring: Earn points by eating food items that appear on the screen.
  • Game Over: The game ends when the snake collides with the walls or itself, displaying a "Game Over" message.
  • Customizable: You can easily customize the game by modifying variables in the code, such as screen size, snake speed, and more.
  • Simple User Interface: The game features a basic graphical user interface using Pygame.

Getting Started

Prerequisites

  • Python 3.x
  • Pygame library (install using pip install pygame)

Installation

  1. Clone the repository:

    git clone https://github.com/Sai-Mohitha/CodeAlpha-snake-game.git

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages