It provides the knowledge/logics how or how many "Queen" can be placed on a chess board so that no two queens cross each other. hi,im IN,a junior computer-mathematics developer.
use pip install -r requirements.txt
Import module "possiblequeen"
from possiblequeen import PossibleQueen as PQ
Create a chess board with the following way by passing "n" number of columns in the chess board
pq=PQ(8)#created chess board of 8 columns
pq.dialu(4,4)#returns index position of left upper diagonals of 4,4
pq.diaru(4,4)#returns index position of right upper diagonals of 4,4
pq.diarl(4,4)#returns index position of right lower diagonals of 4,4
pq.diall(4,4)#returns index position of left lower diagonals of 4,4
pq.linleft(4,4)#returns index position of left indices of 4,4
pq.linupper(4,4)#returns index position of upper indices of 4,4
pq.linright(4,4)#returns index position of right indices of 4,4
pq.linlower(4,4)#returns index position of lower indices of 4,4
pq.fill_lu(4,4)#fills index position of left upper diagonals of 4,4 with 1 on logic_chess_board array
pq.fill_ru(4,4)#fills index position of right upper diagonals of 4,4 with 1 on logic_chess_board array
pq.fill_rl(4,4)#fills index position of right lower diagonals of 4,4 with 1 on logic_chess_board array
pq.fill_ll(4,4)#fills index position of left lower diagonals of 4,4 with 1 on logic_chess_board array
pq.fill_left(4,4)#fills index position of linear left indices of 4,4 with 1 on logic_chess_board array
pq.fill_upper(4,4)#fills index position of linear upper indices of 4,4 with 1 on logic_chess_board array
pq.fill_right(4,4)#fills index position of linear right indices of 4,4 with 1 on logic_chess_board array
pq.fill_lower(4,4)#fills index position of linear lower indices of 4,4 with 1 on logic_chess_board array
pq.fill_center(4,4)#fills index position of 4,4 with 1 on logic_chess_board array
pq.fill(4,4)#fills all diagonal and linear indices of 4,4 with 1 on logic_chess_board array and also fills 1 in current_chess_board array
pq.return_logic_chess_board()#returns logic of the chess board(logic_chess_board array)
pq.return_current_chess_board()#returns current chessboard of the chess board with maker 1(current_chess_board array)
pq.return_queen()#returns number of queens on current_chess_board
pq.isPossible(4,4)#returns true/false depending upon whether qeen can be placed on (4,4)