Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/parisneo/lollms-snake-game

Experience the classic snake game in Python with Lollms Snake Game. Created using the Pygame library, this game features a snake that eats food and avoids collisions. Enjoy the nostalgic gameplay and challenge yourself with Python!
https://github.com/parisneo/lollms-snake-game

Last synced: 4 days ago
JSON representation

Experience the classic snake game in Python with Lollms Snake Game. Created using the Pygame library, this game features a snake that eats food and avoids collisions. Enjoy the nostalgic gameplay and challenge yourself with Python!

Awesome Lists containing this project

README

        

# Lollms' Snake Game
[![GitHub stars](https://img.shields.io/github/stars/ParisNeo/Lollms-GPT3.5-turbo-Snake-Game.svg)](https://github.com/ParisNeo/Lollms-GPT3.5-turbo-Snake-Game/stargazers)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/ParisNeo/Lollms-GPT3.5-turbo-Snake-Game/blob/main/LICENSE)
[![Pygame version](https://img.shields.io/badge/Pygame-2.0.1-blue.svg)](https://pypi.org/project/pygame/2.0.1/)
[![Python version](https://img.shields.io/badge/Python-3.9-blue.svg)](https://www.python.org/downloads/release/python-390/)

Lollms' Snake Game is a Python implementation of the classic snake game using the Pygame library. This game was created by Lollms' Python expert persona with :
- v1 : GPT3.5-turbo on OpenAI.
- v2 : mistral-large on MistralAI.

## Installation
To run the game, you need to have Python and Pygame installed on your system.

1. Clone this repository:
```bash
git clone https://github.com/ParisNeo/Lollms-GPT3.5-turbo-Snake-Game.git
```

2. Change into the game directory:
```bash
cd Lollms-GPT3.5-turbo-Snake-Game
```

3. Install the required dependencies:
```bash
pip install pygame
```

## Usage
To start the game, run the following command:
```bash
python snake_game.py
```

## Game Screenshot
### V1
![image](https://github.com/ParisNeo/Lollms-GPT3.5-turbo-Snake-Game/assets/827993/d7d6c767-df93-4260-b527-2b55c02b9c21)

### V2
![image](https://github.com/ParisNeo/Lollms-GPT3.5-turbo-Snake-Game/assets/827993/36498cd7-098c-4383-a2fb-38a91dd1aec7)

Use the arrow keys to control the snake. The objective is to eat food and avoid collisions with the walls and the snake's own body. The game ends if the snake collides or if you lose all lives.

## License
This project is licensed under the Apache License 2.0. See the [LICENSE](https://github.com/ParisNeo/Lollms-GPT3.5-turbo-Snake-Game/blob/main/LICENSE) file for more details.