ajkdrag /
ai-plays-snake
Classic Snake game in Java and Processing 3, with Q-Learning.
41/100 healthLoading repository data…
CodeAvecAsnit / repository
A Classic Snake game built on Java integrated with Q-Learning for automation bot and connected to a Spring Boot server for high score rankings.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
This repository contains the implementation of the classic Snake game. It features an autonomous agent powered by Q-Learning and Flood Fill algorithm. The project is built with a Java Swing client and a Spring Boot backend for leaderboard management and score tracking.
For the complete breakdown of the mathematical foundation and the building process, check out the full article on Medium:
Building an Autonomous Snake Game with Q-Learning
The repository is divided into two main components:
To run the game, you must generate a JAR file locally. This process ensures that the application is built within your environment, which helps bypass certain operating system security warnings associated with untrusted third-party binaries.
Note: Please note that your Operating System (Windows/macOS) may flag the downloaded .jar file as untrusted and prevent it from running. To resolve this and ensure a secure execution, you can build the file manually on your own device after checking the code for security issues.
git clone [https://github.com/CodeAvecAsnit/AutonomousSnakeGame.git](https://github.com/CodeAvecAsnit/AutonomousSnakeGame.git)
Note: If you cannot clone the repo or download from the website, manually download the source files as a ZIP from the repository.
cd AutonomousSnakeGame/SnakeGameSwing
mvn clean package
java -jar target/SnakeGameSwing-1.0-SNAPSHOT.jar
Selected from shared topics, language and repository description—not editorial ratings.
ajkdrag /
Classic Snake game in Java and Processing 3, with Q-Learning.
41/100 health