Skip to content
jsap7Public

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake AI

An AI that plays Google's Snake Game using browser automation and computer vision.

Overview

This project implements an AI agent that can play the Google Snake Game autonomously. It uses browser automation, computer vision, and pathfinding algorithms to achieve high scores consistently.

Features (Planned)

  • Automated game initialization
  • Real-time game state detection
  • Intelligent pathfinding
  • Advanced survival strategies
  • Performance monitoring and analytics

Tech Stack

  • Python
  • Selenium/Playwright for browser automation
  • OpenCV/PIL for computer vision
  • Custom pathfinding algorithms

Setup

  1. Clone the repository:
git clone https://github.com/jsap7/snake-ai.git
cd snake-ai
  1. Install dependencies:
pip install -r requirements.txt
  1. Run the script:
python src/main.py

Development

  • The browser.py file contains the GameController class that handles browser automation
  • The main.py file contains the test script for the game controller

Contributing

  1. Create your feature branch (git checkout -b feature/AmazingFeature)
  2. Commit your changes (git commit -m 'Add some AmazingFeature')
  3. Push to the branch (git push origin feature/AmazingFeature)
  4. Open a Pull Request

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages