Home▸Algorithms & AI▸N-Queens Problem (2D)

♛ N-Queens Problem (2D)

Watch the N-Queens backtracking algorithm solve the classic chess puzzle step by step on a 2D Canvas board. Control board size (4-12), speed, and explore all solutions.

Algorithms & AI2DEasy60 FPS📱 Mobile-adapted⇄ 3D version
2d-n-queens ↗ Open standalone
⚙ Under the hood

Watch the N-Queens backtracking algorithm solve the classic chess puzzle on a 2D chessboard, step by step or fully automatic. Place queens column by column, see conflicts highlighted in real time, and track every solution the search finds.

algorithmsbacktrackingchessconstraint-satisfactioncombinatoricsvisualization

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)