quarta-feira, 11 de janeiro de 2017

Escape the JavaFX maze using Genetic Algorithms

In Genetic Algorithms with Java post I presented a "escape the maze" example. In this post, I will share with you a JavaFX application used to control the genetic algorithm execution and visualize the directions after running the evolution.

The JavaFX application can generate mazes with the number of blocks (walls), columns and rows you select. You can also change the evolution parameters, such as the population, the genes multiplier (it resolves to columns * rows * genes multiplier and it determines the number of genes - directions or steps) and you can also choose the number the generations before evolving. To be honest, I spent hours playing with it and you can play with it as well! You just need Java and Maven:
$ mvn clean package exec:java -Dexec.mainClass=org.fxapps.genetics.mazefx.MazeFXApp

See it in action:

Nenhum comentário:

Postar um comentário