Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 768 Bytes

README.md

File metadata and controls

41 lines (26 loc) · 768 Bytes

NQueen

NQueen is a python module for solving the famous N-Queen problem.

Installation

Clone the project.

git clone https://github.com/mbilalakmal/NQueen.git

To install dependencies from requirements.txt run:

pip install -r requirements.txt

Usage

import queen

size = 8 # size of the board
board = queen.Board(size) # creates a [size*size] board

is_solved = queen.place_queen(board) # returns True if solved.
if is_solved == True:
    board.describe() # prints the board to console

Authors

  • Muhammad Bilal Akmal

License

MIT

Acknowledgments