Skip to content

♟️N Queens Puzzle Visualizer♟️ is an interactive chessboard-themed app that helps you explore and solve the N-Queens Puzzle. With real-time conflict detection , animated solutions, and a sleek dark-themed UI , it makes visualizing solutions easier and more engaging!

Notifications You must be signed in to change notification settings

MathewJobey/N_Queens_Puzzle_Visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

N_Queens_Puzzle_Visualizer

alt text A simple Python implementation to solve the N-Queens Problem using backtracking, now with a graphical interface! 🎨✨ Place N queens on an N × N chessboard such that no two queens attack each other.

🚀 Features

  • Interactive GUI to visualize solutions.
  • Solves the N-Queens Problem for any board size.
  • Displays all possible solutions dynamically.
  • Uses a recursive backtracking approach.

🔧 How to Run

  1. Clone this repository or copy the N_Queens_Puzzle_Visualizer.py file.
  2. Run the program:
    python N_Queens_Puzzle_Visualizer.py
  3. Enter the board size N when prompted and watch the GUI show possible solutions! 🎉

🎯 How It Works

  • The program places queens one by one in different columns.
  • It tries different positions and backtracks if conflicts arise.
  • Continues until all solutions are found!
  • The GUI visually represents each solution, making it easier to understand the placements.

📌 Example (GUI Preview)

When running the program, a window will open showing the chessboard. Each valid solution is displayed step-by-step, with Q representing a queen's placement.

Enjoy solving the N-Queens challenge visually!✨

About

♟️N Queens Puzzle Visualizer♟️ is an interactive chessboard-themed app that helps you explore and solve the N-Queens Puzzle. With real-time conflict detection , animated solutions, and a sleek dark-themed UI , it makes visualizing solutions easier and more engaging!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages