Skip to content

Latest commit

 

History

History
14 lines (13 loc) · 339 Bytes

README.md

File metadata and controls

14 lines (13 loc) · 339 Bytes

Queen Problem

Solves 8 queen problem using Z3, extended to n-queen problem.
Currently prints only one solution but can be extended to print all solution.

Soln for 8-queen problem:

0 0 1 0 0 0 0 0 
0 0 0 0 1 0 0 0 
0 1 0 0 0 0 0 0 
0 0 0 0 0 0 0 1 
1 0 0 0 0 0 0 0 
0 0 0 0 0 0 1 0 
0 0 0 1 0 0 0 0 
0 0 0 0 0 1 0 0