Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 583 Bytes

readme.md

File metadata and controls

29 lines (19 loc) · 583 Bytes

Simulation of 100 Prisoners Problem using Python and Numpy:


100 Prisoners Problem:

Came across this interesting problem from veritasium's youtube channel

100 Prisoners Problem


How to run:

git clone github.com/brpy/100-prisoners-problem/
cd 100-prisoners-problem

python -m pip install -r requirements.txt
python simulate.py

Options:

python simulate.py -N <no. of simulations> -n <no. of prisoners>

by default, N = 1000, n = 100