Skip to content

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

Notifications You must be signed in to change notification settings

rezamardaniDev/Problem-10-Queens

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages