I wrote this program many years ago, now I put it on GitHub.
The main idea is from the article: Application of Genetic Programming to the Snake Game.
Based on the idea, I wrote the source code in Java.
After many generations evolving, this app will base on very basic "syntax node", automatic evolve a "best program" for snake to follow.
The higher the "Best score", the "Smarter" the snake is.
The main class is: gui/EvolveGreedySnake.java.
You can also directly run the "Snake.jar" file.
xuzhao-nick/Evolve-a-Greedy-Snake
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Use Genetic Programming Algorithm to evolve a greedy snake.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published