Skip to main content

Install using pip3 install prisoners_problem.

Run a couple samples with a given strategy:

>>> from prisoners_problem import simulate
>>> simulate.nsamples(1000, strategy=simulate.try_find_self)
0.3
>>>

help(simulate.nsamples) should give information for how to put in your own strategy.

You can run python3 -m prisoners_problem.viz to show the results of the visualization.

Metadata

Release files for prisoners-problem 0.0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for prisoners-problem 0.0.10
File Size Uploaded Provenance Actions
prisoners_problem-0.0.10.tar.gz 3.3 kB Without provenance Details for prisoners_problem-0.0.10.tar.gz

Release files / prisoners_problem-0.0.10.tar.gz

Download URL prisoners_problem-0.0.10.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8bc160d8f7f97c797637869f7e4266013daf4f359d665e7c6fbe31fe9ac5afba
BLAKE2b-256 checksum
How to use checksums
343bc5efb48029354e13bf11b6f3424ae51477ff9cf03213c74f4111e32b2647
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

Security for prisoners-problem 0.0.10

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page