2 ms·
Not the shortest, but the most clear solving in Z3 because instead of an algorithm you define the solution: https://github.com/0vercl0k/z3-playground/blob/maste
by wslh 11y ago
Not the shortest, but the most clear solving in Z3 because instead of an algorithm you define the solution: https://github.com/0vercl0k/z3-playground/blob/master/nqueens_z3.py https://github.com/0vercl0k/z3-playground/blob/master/nqueen...
- FreeFull 11y agoAnd here is the solution using Picat, using the included sat library: http://picat-lang.org/exs/bqueens.pi http://picat-lang.org/exs/bqueens.pi