Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Simulate the 100 prisoners problem.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for prisoners-problem, version 0.0.10
Filename, size File type Python version Upload date Hashes
Filename, size prisoners_problem-0.0.10.tar.gz (3.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page