100 prisoners: Difference between revisions
Content added Content deleted
m (→{{header|Phix}}: use pygments) |
m (→{{header|Phix}}: by 90 -> in) |
||
Line 4,805: | Line 4,805: | ||
constant iterations = 100_000 |
constant iterations = 100_000 |
||
printf(1,"Simulation count: %d\n",iterations) |
printf(1,"Simulation count: %d\n",iterations) |
||
for prisoners |
for prisoners in {10,100} do |
||
atom random = play(prisoners,iterations,false), |
atom random = play(prisoners,iterations,false), |
||
optimal = play(prisoners,iterations,true) |
optimal = play(prisoners,iterations,true) |