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 !

Smaller board Bigger board

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) :

No delay Small delay Big delay

Flash when find a solution ⚠ EPILEPSY RISK ⚠

Count Queens Solutions

⚠ You have more queens than you have rows or columns,

there won't be any possible solutions !

(but the algorithm tries anyway, for fun.)

Solutions found: 0

Stop Reset