It's second project of Artificial intelligence course in Amirkabir University Of Technology. Genetic algorithm in AI has been implemented in this repository with showing different states in a simple game. The game is basically likes "Supermario". Genetic algorithm has 4 steps: initial population, fitness function, crossover, mutation. each of these steps has implemented.
Artificial Intelligence Course 2nd Project: Implementing genetic algorithm in order to solve Super Mario game.
In this group project we (pouyanhessabi and omidmahyar) implemented genetic algorithm
to solve Super-Mario game.
Mario can jump, go straight or dodge. Mario must jump over Goomba and must dodge when it reaches Lakito. If Mario jumps 2 step before Goomba it can kill Goomba and then it gets more points.
If Mario jumps when it reaches at the end of the board it gets more points (but it's adjustable). If Mario jumps on a Goomba it gets additional points.
We implemented different types of crossover
:
- crossover from one point which is chosen and randomly
- crossover from one point which you can specify (by index)
- crossover from two points which are chosen randomly
- crossover from two points which you can specify (by index)
and selection
:
- weighted random
- best selection
that you can choose from. Also you can the number of initial population
and mutation probability
.
Check full description (in persian): here
Project report (in persian): here
Check our other AI Course projects: