An open API service indexing awesome lists of open source software.

https://github.com/jeshan/hypothesis-n-queens-problem

Solving the n-queens problem using property-based tests with Hypothesis
https://github.com/jeshan/hypothesis-n-queens-problem

hypothesis property-based-testing pytest

Last synced: 3 months ago
JSON representation

Solving the n-queens problem using property-based tests with Hypothesis

Awesome Lists containing this project

README

          

# N queens problem (Hypothesis example)

This project demonstrates how to solve the N-queens problem (aka the [8 queens puzzle](https://en.wikipedia.org/wiki/Eight_queens_puzzle)) using Python and the Hypothesis library.

## Requirements

This demo needs Hypothesis and pytest installed. Using [pipenv](https://github.com/pypa/pipenv), run `pipenv run pytest`.

You should then see:
![](screenshot.png)

# Copyright
2020 Jeshan G. BABOOA

Code is released under the simplified BSD licence. See [LICENCE](LICENCE) file for details.