RsGoksel / SnakeGame-with-GeneticAlgorithm

Using Neural Network and Genetic Algorithm to play SnakeGame

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Using Neural Network and Genetic Algorithm to play SnakeGame

License:Apache License 2.0


Languages

Language:Jupyter Notebook 65.8%Language:Python 34.2%