Skip to content

aramirol/snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake

Python application

Quality Gate Status Reliability Rating Bugs Vulnerabilities

Snake is a classic arcade game where the player controls a snake that moves around the screen. The objective of the game is to eat food items that appear randomly while avoiding collisions with the snake's own body or the game boundaries.

As the snake eats food, it grows in length, making it more challenging to navigate without running into itself. The game ends if the snake collides with its own body or hits the boundaries of the game window.

The player controls the snake's movement using arrow keys or other designated keys. The snake can move in four directions: up, down, left, and right. The goal is to eat as much food as possible and achieve the highest score.

This game was develeped using ChatGPT.

Requirements

You must need python installed and the library pygame.

pip install --upgrade pygame

How to

To join this game just follow these steps:

$ git clone https://github.com/aramiol/snake.git
$ cd snake
$ python snake.py

License

GitHub

See LICENSE to see the full text.