montyhallsim
A command-line interface for simulating the Monty Hall problem.
Installation
PyPI
$ pip install montyhallsim
GitHub
$ git clone https://github.com/mrwolferinc/montyhallsim.git
$ cd montyhallsim
$ python setup.py install
Usage/Examples
The simplest usage of the interface:
$ montyhallsim
To run a simulation without swapping doors:
$ montyhallsim -n
To run a simulation with a specified number of rounds played:
$ montyhallsim -r 15
Arguments
Syntax: montyhallsim [-r [ROUNDS]] [-n]
| Argument | Type | Description |
|---|---|---|
| -r [ROUNDS], --rounds [ROUNDS] | optional | Set the number of rounds to be played - defaults to 10. |
| -n, --no-swap | optional | Run a simulation without swapping doors. |
Note: If you are running this package locally, then you will need to call
python -m montyhallsiminstead ofmontyhallsim.
Running Tests
Tests are located inside the tests directory and are run using pytest. To run tests, run the following commands:
$ pip install pytest
$ pip install -e .
$ pytest
Contributing
Contributions are always welcome!
See CONTRIBUTING.md for ways to get started.
Please adhere to this project's code of conduct while contributing.
License
Metadata
Release files for montyhallsim 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| montyhallsim-1.0.1.tar.gz | 4.4 kB | Without provenance | Details for montyhallsim-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| montyhallsim-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for montyhallsim-1.0.1-py3-none-any.whl |
Total release size: 8.9 kB
Release files / montyhallsim-1.0.1.tar.gz
| Download URL | montyhallsim-1.0.1.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1dde8e6d8257a0bece85d8be2adf3912934c517036e0ec6549deccf6c6cf8d61
|
|
BLAKE2b-256 checksum How to use checksums |
933ab366561acce50d2c0fe3d897fa98b55c8630b5591bda56d4d204dfd57237
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.4
|
Release files / montyhallsim-1.0.1-py3-none-any.whl
| Download URL | montyhallsim-1.0.1-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a88cb61169262404deccf8bde97bbb42c511054aba6ac1eff2e2ac3b0780671b
|
|
BLAKE2b-256 checksum How to use checksums |
7a34e16dc51a2d515cf4f0eb84c0c050830a29ef2b7998671750620dafc317b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.4
|
Security for montyhallsim 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.