A polished implementation of the classic Snake game featuring both human player and AI modes. Built with Python and Pygame, this modern take on Snake includes intelligent AI opponents, customizable settings, and a sleek user interface.
Go to file
2025-02-23 13:06:09 -05:00
src Fix menu crash: - Add back MenuItem.draw method - Remove duplicate MenuItem class - Fix menu item imports 2025-02-23 13:06:09 -05:00
tests Improve package structure and add proper setup.py 2025-02-23 12:38:45 -05:00
.gitignore Update .gitignore to properly exclude virtual environments 2025-02-23 12:14:17 -05:00
LICENSE Initial commit 2025-02-23 17:09:40 +00:00
pytest.ini Fix test discovery by adding __init__.py files 2025-02-23 12:32:32 -05:00
README.md Merge remote changes and resolve conflicts 2025-02-23 12:11:44 -05:00
requirements.txt Fix food spawn test and optimize test execution 2025-02-23 12:25:28 -05:00
ROADMAP.md Add main menu system with game mode selection 2025-02-23 12:16:14 -05:00
setup.py Fix package structure and entry point 2025-02-23 12:41:06 -05:00

AI Snake Game

A polished implementation of the classic Snake game with both human player and AI modes.

Features

  • Classic snake gameplay with modern graphics
  • AI-controlled snake with multiple difficulty levels
  • Score tracking and high score system
  • Configurable game settings
  • Sound effects and background music

Installation

  1. Clone the repository:
git clone https://git.spacetrainclubhouse.com/Rbanh/AI-Snake-Game.git
cd AI-Snake-Game
  1. Create and activate virtual environment:
python -m venv venv
# On Windows:
.\venv\Scripts\activate
# On Unix or MacOS:
source venv/bin/activate
  1. Install dependencies:
pip install -r requirements.txt

Usage

To start the game:

python src/main.py

Project Structure

ai-snake/
├── src/           # Source code
├── tests/         # Test files
├── assets/        # Game assets (images, sounds)
├── venv/          # Virtual environment
├── README.md      # Project documentation
└── requirements.txt # Python dependencies

Development

This project is under active development. See the ROADMAP.md file for current status and planned features.

License

MIT License