Skip to content

Sagar180304/N-Queen-Visualiser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Queen's Gambit: N-Queens Visualiser

Queen's Gambit is a visualisation tool for solving the N-Queens problem using a backtracking algorithm. The N-Queens problem involves placing N chess queens on an N×N chessboard so that no two queens threaten each other. This project allows you to interactively explore and visualize solutions to the N-Queens problem.

Screenshots

Screenshot 2024-06-18 at 23 42 52

Caption for Screenshot 1

Screenshot 2024-06-18 at 23 43 28

Caption for Screenshot 2

Features

  • Interactive UI: Adjust the number of queens and visualize solutions.
  • Backtracking Algorithm: Find all possible solutions.
  • Slider for Speed: Adjust visualization speed.
  • Responsive Design: Works well on various screen sizes.

Getting Started

Clone the repository and open index.html in your web browser.

https://github.com/Sagar180304/N-Queen-Visualiser.git
cd queens-gambit

Usage

  1. Input Number of Queens:

    • Enter the number of queens in the input box.
  2. Adjust Visualization Speed:

    • Use the slider to change the speed.
  3. Start Visualization:

    • Click "Play" to see the solutions unfold.

Technologies Used

  • HTML: Structuring the web page.
  • CSS: Styling the UI components.
  • JavaScript: Implementing the interactive features and algorithm.

Demo

Your result should to be same as the above screen shots.

Contributing

Contributions are always welcome!

So if you would like to add some thing or update some existing features then please make pull request , I will review it as early as possible.

Lessons Learned

What did you learn while building this project? What challenges did you face and how did you overcome them?

    1. Algorithm Optimization Implementing the backtracking algorithm for solving the N-Queens problem taught valuable lessons in algorithm optimization. Iterative improvements in the algorithm's efficiency were necessary to handle larger board sizes without performance degradation.
    1. UI/UX Design Iteration Iterative UI/UX design was crucial to improve user interaction and visual clarity. Feedback loops from testing helped in refining the slider functionality and ensuring responsive design across different devices.

About

N-Queens problem using a backtracking algorithm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published