Neural Ninjas · DSA Simulation Labs · Lab 20

♛ The Threat Matrix

Every placed queen fires red lasers in 8 directions. Try to place the next queen anywhere those lasers reach, and the algorithm backs up, pulls the last queen off the board, and tries the next square instead.

Backtrack Log

Controls

♛ QueenI only ever try the next row. If every square there is under fire, I don't get placed at all — someone behind me has to move first.
🔴 LaserRow, column, both diagonals — 8 directions, straight lines only. Step into my path and the algorithm knows instantly.
Pick a level above to begin.