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-24 18:38:44 -05:00
src Major code restructuring: Reorganized project structure, added AI components - Added new module structure (ai, config, core, ui) - Moved snake and food logic into core module - Added training configuration - Updated gitignore for project-specific files - Modified tests to match new structure 2025-02-24 18:38:44 -05:00
tests Major code restructuring: Reorganized project structure, added AI components - Added new module structure (ai, config, core, ui) - Moved snake and food logic into core module - Added training configuration - Updated gitignore for project-specific files - Modified tests to match new structure 2025-02-24 18:38:44 -05:00
.gitignore Major code restructuring: Reorganized project structure, added AI components - Added new module structure (ai, config, core, ui) - Moved snake and food logic into core module - Added training configuration - Updated gitignore for project-specific files - Modified tests to match new structure 2025-02-24 18:38:44 -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 Major code restructuring: Reorganized project structure, added AI components - Added new module structure (ai, config, core, ui) - Moved snake and food logic into core module - Added training configuration - Updated gitignore for project-specific files - Modified tests to match new structure 2025-02-24 18:38:44 -05:00
ROADMAP.md Major code restructuring: Reorganized project structure, added AI components - Added new module structure (ai, config, core, ui) - Moved snake and food logic into core module - Added training configuration - Updated gitignore for project-specific files - Modified tests to match new structure 2025-02-24 18:38:44 -05:00
setup.py Fix package structure and entry point 2025-02-23 12:41:06 -05:00
training_config.json Major code restructuring: Reorganized project structure, added AI components - Added new module structure (ai, config, core, ui) - Moved snake and food logic into core module - Added training configuration - Updated gitignore for project-specific files - Modified tests to match new structure 2025-02-24 18:38:44 -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