Very fast problem solving of 8 queens with genetic algorithm.
- Clone this repository: 8-queens-genetic-algorithm
- Run main.py:
python3 main.py
- Enter the number of solutions you want
After these steps, your output should look like the following:
The main difference between this algorithm and other algorithms is that before the children are produced by the parents, first the parents' heuristic is calculated based on the position of the queen and then, As much as possible, the queen's position on the chessboard changes to reach a fitness level of 28, otherwise the parents will have children.