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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

The task is to arrange 10 queens on a 10x10 chessboard in such a way that none of them can attack the others


Languages

Language:Python 100.0%