Skip to content

Shariq2003/N-Queen-Visualiser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

N-Queens Visualiser

Welcome to the N-Queens Visualiser! This web application allows you to visualize the classic N-Queens problem, where the objective is to place N queens on an N x N chessboard such that no two queens threaten each other. This is achieved by ensuring that no two queens share the same row, column, or diagonal.

Table of Contents

Features

  • Interactive visualization of the N-Queens problem
  • Ability to input the number of queens (up to 8)
  • Slider for controlling the speed of visualization
  • Displays all possible arrangements of queens for the given input
  • Responsive design for both desktop and mobile

Technologies Used

Getting Started

To get a local copy up and running follow these simple steps:

  1. Clone the repository:

    git clone https://github.com/yourusername/N-Queens-Visualiser.git
  2. Navigate to the project directory:

    cd N-Queens-Visualiser
  3. Open index.html in your web browser.

How to Use

  1. Enter the number of queens you want to place on the chessboard in the input field.
  2. Use the slider to adjust the speed of the visualization.
  3. Click the Play button to start the visualization.
  4. You can stop the visualization at any time.

Contributing

Contributions are welcome! Please follow these steps to contribute to this project:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/YourFeature).
  3. Commit your changes (git commit -m 'Add some feature').
  4. Push to the branch (git push origin feature/YourFeature).
  5. Open a Pull Request.