Play the 8-Queens Puzzle

Place 8 queens on the 8x8 board so that no two queens can attack each other. The classic mathematical puzzle that challenges your mind.

Queens Placed 0/8
Conflicts 0
Time 00:00

How to Play

  • Select board size (4×4 to 15×15)
  • Click on a square to place a queen
  • Click on a queen to remove it
  • Red squares indicate conflicts
  • Place all queens with no conflicts to win

Puzzle Rules

  • Queens cannot be in the same row
  • Queens cannot be in the same column
  • Queens cannot be on the same diagonal
  • Exactly N queens must be placed

Algorithms & Programming

This puzzle is perfect for learning backtracking algorithms, recursive programming, and optimization. It's a classic problem in programming interviews and computer science courses.

Play the N-Queens Puzzle Online

Play the N-Queens puzzle for free online! Place queens on the chessboard so that no two queens can attack each other. Our interactive game lets you choose board sizes from 4×4 to 15×15, with hints, undo, and auto-solve features. Perfect for improving your logical thinking and problem-solving skills.

How to Play the N-Queens Puzzle

Playing the N-Queens puzzle is simple but challenging. Click on any square to place a queen. Red squares indicate conflicts where queens can attack each other. Your goal is to place exactly N queens (where N is the board size) so that no queen can attack another. Use hints if you get stuck, or the solve button to see the solution automatically.

Game Features

  • Board sizes from 4×4 to 15×15 for all skill levels
  • Smart hints to help you progress
  • Undo function to correct mistakes
  • Auto-solve to see solutions
  • Timer to track your solving time
  • Intuitive and easy-to-use interface

Strategies for Better Gameplay

To play the N-Queens puzzle effectively, start by placing queens in corners and edges of the board. Avoid placing queens in the same row, column, or diagonal. If you find a conflict, use the undo function and try a different position. For larger boards, it's helpful to think about patterns and symmetries. Regular practice will help you develop intuition for solving the puzzle more quickly.

Benefits of Playing the Queens Puzzle

Playing the N-Queens puzzle regularly improves your logical thinking, concentration, and problem-solving skills. It's an excellent mental exercise you can do anytime. Perfect for students, professionals, and anyone who enjoys mental challenges. The game is completely free and requires no registration.

Different Difficulty Levels

Our game lets you play the N-Queens puzzle at different difficulty levels. Start with 4×4 or 5×5 boards for beginners, then progress to 8×8 (the classic) and finally challenge yourself with 12×12, 15×15 or larger boards. Each size presents new challenges and requires different strategies. Find your perfect level and improve gradually!