Skip to content

This is a solver for the n-queens problem, wherein n queens are to be placed on an n x n chessboard so that no pair of queens can attack each other.

Notifications You must be signed in to change notification settings

hkz5009/N-queens

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

N-queens

  • I will develop a solver for the n-queens problem.

  • wherein n queens are to be placed on an n x n chessboard so that no pair of queens can attack each other.

  • Python 2, if you are using Python 3, there are few changes on imports.

  • function n_queens_solutions(n) yields all valid placements of n queens on an n x n board.

  • depth-first-search

About

This is a solver for the n-queens problem, wherein n queens are to be placed on an n x n chessboard so that no pair of queens can attack each other.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages