An open API service indexing awesome lists of open source software.

https://github.com/rsgoksel/snakegame-with-geneticalgorithm

Using Neural Network and Genetic Algorithm to play SnakeGame
https://github.com/rsgoksel/snakegame-with-geneticalgorithm

genetic-algorithm gym numpy-arrays population pygame python snake-game stable-baselines3

Last synced: 4 months ago
JSON representation

Using Neural Network and Genetic Algorithm to play SnakeGame

Awesome Lists containing this project

README

        

# SnakeGame-with-GeneticAlgorithm
Training a neural network-based snake game agent using genetic algorithms for evolutionary improvement

Every agent on the screen has own neural network.


During the initialization step of population creation, each agent is assigned unique weights.

**Eventually:**
* These unique weighted agents will evaluate by their fitness functions, and selected by genetic algorithms.
* Every generation or epoch after the first epoch, there will be choosen agents who shows successes about enclosing to apple.
* The best agents consist of areas that show the closest moves to the apple