A solution to the N-Queens problem in Elixir. Solved with property-based testing using StreamData and ExUnitProperties.
How can I place N queens on an NxN chessboard such that all the queens are safe and none of them can attack one another.
If available in Hex, the package can be installed
by adding n_queens
to your list of dependencies in mix.exs
:
def deps do
[
{:n_queens, "~> 0.1.0"}
]
end
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/n_queens.