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.
- 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
- HTML
- CSS
- JavaScript
- Font Awesome for icons
To get a local copy up and running follow these simple steps:
-
Clone the repository:
git clone https://github.com/yourusername/N-Queens-Visualiser.git
-
Navigate to the project directory:
cd N-Queens-Visualiser
-
Open index.html in your web browser.
- Enter the number of queens you want to place on the chessboard in the input field.
- Use the slider to adjust the speed of the visualization.
- Click the Play button to start the visualization.
- You can stop the visualization at any time.
Contributions are welcome! Please follow these steps to contribute to this project:
- Fork the repository.
- Create a new branch (git checkout -b feature/YourFeature).
- Commit your changes (git commit -m 'Add some feature').
- Push to the branch (git push origin feature/YourFeature).
- Open a Pull Request.