100 prisoners: Difference between revisions
Content added Content deleted
(F# "smartChoice" modified to use functional approach (though less efficient)) |
m (→{{header|JavaScript}}: lang -> pre) |
||
Line 3,358: | Line 3,358: | ||
Output: |
Output: |
||
< |
<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</ |
Probability of success with "optimal" strategy: 33.2</pre> |
||
=={{header|jq}}== |
=={{header|jq}}== |