An open API service indexing awesome lists of open source software.

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

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.