https://github.com/rezamardanidev/problem-10-queens
The task is to arrange 10 queens on a 10x10 chessboard in such a way that none of them can attack the others
https://github.com/rezamardanidev/problem-10-queens
cheese queens-problem queens-puzzle vazir
Last synced: 11 months ago
JSON representation
The task is to arrange 10 queens on a 10x10 chessboard in such a way that none of them can attack the others
- Host: GitHub
- URL: https://github.com/rezamardanidev/problem-10-queens
- Owner: rezamardaniDev
- Created: 2024-01-06T06:36:16.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-06T06:50:30.000Z (over 2 years ago)
- Last Synced: 2025-04-14T19:28:30.537Z (about 1 year ago)
- Topics: cheese, queens-problem, queens-puzzle, vazir
- Language: Python
- Homepage:
- Size: 30.3 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 10 Queens Chess Problem Solver
This Python script utilizes Pygame to visualize the solution to the challenging 10 Queens chess problem. The objective is to place ten queens on a 10x10 chessboard in a way that no two queens threaten each other. The script employs a recursive algorithm to find a valid arrangement.
## Prerequisites
Ensure you have Python 3.12 installed on your system along with the Pygame library. You can install Pygame using the following command:
`
pip install pygame`
## How to Run
After installing the required libraries, execute the script by running the following command in your terminal or command prompt:
`
python vazir.py`
## Customization
If you wish to customize the script further or try solving a different chess problem with a other board(8*8), feel free to modify the code accordingly. The script is designed to be adaptable for various scenarios.