kaserashi /
Snake-Game
Implementation of Snake game in Java with animations and graphics
53/100 healthLoading repository data…
CamGomezDev / repository
Snake game implementation with an AI that uses neural networks and a genetic algorithm, in Processing/Java.
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 accompanies this video: https://www.youtube.com/watch?v=k2JqH5j2VYo.
The Java framework used is Processing and the main file is DeepGeneticSnake.pde. I've made comments to the code (in spanish) as well as I could.

To execute it's necessary to have Processing installed. After this, the repository must be just downloaded or cloned, opened from Processing and then run. The keys to control the simulation then show up. The classes NeuralNet.pde and Matrix.pde were gotten from the code that accompanies this Code Bullet video https://www.youtube.com/watch?v=3bhP7zulFfY.
The AI consists in a genetic algorithm that, in each generation, create 2000 snakes and then chooses the best ones and combines its brain for the next generation. The best ones, in this case, are defined as the ones that got a highest fitness, where the fitness function is defined in Snake.pde in the function died(). The brains are the neural networks, and to combine them means to create a new one with some nodes copied from one some others from other, mutating some of them to generate variety.
If something is not understood you can let me know in the Issues.
Selected from shared topics, language and repository description—not editorial ratings.
kaserashi /
Implementation of Snake game in Java with animations and graphics
53/100 healthharymahayana07 /
Give Star And Keep Learning Java : snake game with Java GUI for Implement Tree algorithm
38/100 healthgitKeshav11 /
Java Swing based Snake Game with real-time movement, increasing difficulty, score system, and clean object-oriented implementation.
45/100 healthsowndharnewbie /
This is a simple implementation of the classic Snake game using Java and Swing.
49/100 healthotienogeoffrey812 /
Snake game implemented in Java using Swing for the graphical interface.
64/100 healthCamGomezDev /
Snake game implementation with AI that uses Dijkstra's algorithm, in Processing/Java.
33/100 health