100 prisoners: Difference between revisions

Content added Content deleted
(F# "smartChoice" modified to use functional approach (though less efficient))
Line 3,358: Line 3,358:
Output:
Output:


<lang>Games count: 2000
<pre>Games count: 2000
Probability of success with "random" strategy: 0
Probability of success with "random" strategy: 0
Probability of success with "optimal" strategy: 33.2</lang>
Probability of success with "optimal" strategy: 33.2</pre>


=={{header|jq}}==
=={{header|jq}}==