The Super Duper Eight Queens problem

This is a small Vue component I hacked one weekend. You are welcome to play with it !


How would you place 8 queens on a chess board, in a way that none of them can touch each others ?
How many solutions can there be ?
Test any value here !

Number of rows :

(1 to 26)

Number of columns :

(1 to 26)

Number of queens :

(currently placed: 0)

Visualization delay (ms, can be changed live) :

Solutions found: 0

8
7
6
5
4
3
2
1
ABCDEFGH

This algorithm use Recursive Backtracking !

This means we actually test all possibles solutions recursively from the end. Neat !
You can see the backtrack in action here☝
Increase delay to better see the algorithm trying to place queens !
2019, by Samuel Faure (Code on Github !)