An interactive React + TypeScript puzzle: place 8 queens on a chessboard so none can attack each other.
Live app: https://galiakr.github.io/8queens/
- Manual play click to place queens, threatened squares highlight in real time
- Animated solver watch the backtracking algorithm work step by step
- All 92 solutions navigate through every valid arrangement
- Confetti because solving it deserves a celebration
- Learn collapsible panel explains the puzzle, backtracking, and why there are exactly 92 solutions
React 18 · TypeScript · Tailwind CSS · Vite · Vitest
git clone https://github.com/galiakr/8queens.git
cd 8queens
npm install
npm run devOpen http://localhost:5173.
npm test # run once
npm run test:coverage # with coverage reportThis is a rewrite of an older vanilla JS version. The backtracking algorithm is preserved from the original.
- Vanilla JS → React 18 + TypeScript
- Single solution → all 92 solutions with navigation
- Static solver → animated step-by-step
- No tests → Vitest unit tests (WIP)
- Accessibility: keyboard navigation, aria-labels, semantic HTML


