Skip to content

saeedsh78/n-queens

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

N Queens

Static Badge MIT License

This Python script provides a solution to the N-Queens problem using a recursive approach. The N-Queens problem involves placing N chess queens on an N×N chessboard in such a way that no two queens threaten each other. In other words, no two queens can be in the same row, column, or diagonal.

How to Use

  • Open the script in a Python environment.
  • Set the desired number of queens (N) in the script.
  • Run the script.

The program will output all possible solutions to the N-Queens problem. Each solution is represented as a chessboard with queens denoted by 'Q' and empty squares denoted by '-'.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages