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
- Host: GitHub
- URL: https://github.com/jeshan/hypothesis-n-queens-problem
- Owner: jeshan
- License: bsd-2-clause
- Created: 2020-05-03T21:32:29.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-04-20T19:56:35.000Z (about 5 years ago)
- Last Synced: 2026-04-04T06:42:26.244Z (3 months ago)
- Topics: hypothesis, property-based-testing, pytest
- Language: Python
- Size: 130 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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:

# Copyright
2020 Jeshan G. BABOOA
Code is released under the simplified BSD licence. See [LICENCE](LICENCE) file for details.