Skip to content

TheAILearner/Training-Snake-Game-With-Genetic-Algorithm

Repository files navigation

Training-Snake-Game-Using-Genetic-Algorithm

main.py - to start training snake game using genetic algorithm

Snake_Game.py - contains logic of creating snake game using pygame

Run_Game.py - play snake game using predicted directions from genetic algorithm

Genetic_Algorithm.py - contains genetic algorithm functions like crossover, mutation etc

Feed_Forward_Neural_Network.py - contains the functions for calculating the output from feed forward neural network

To know more about algorithm used in this code you can follow this blog https://theailearner.com/2018/11/09/snake-game-with-genetic-algorithm/

License & Copyright

Copyright (c) 2019 kang & atul

Licensed under the MIT License.