Talk:Dice game probabilities: Difference between revisions

From Rosetta Code
Content added Content deleted
(→‎Test runs: new section)
 
m (→‎Test runs: formatting)
Line 2: Line 2:


Test runs with 10000 samples show
Test runs with 10000 samples show
0.5751 player 1 wins (agrees with shown probabilities)
<br>0.5751 player 1 wins (agrees with shown probabilities)
0.3535 player 2 wins
<br>0.3535 player 2 wins
0.0714 draws
<br>0.0714 draws
<br>and for the second part:

0.6405 player 1 wins (differs considerably)
<br>0.6405 player 1 wins (differs considerably)
0.3147 player 2 wins
<br>0.3147 player 2 wins
0.0448 draws
<br>0.0448 draws


Can somebody show the pseudo code ?
Can somebody show the pseudo code ?

Revision as of 15:17, 16 January 2015

Test runs

Test runs with 10000 samples show
0.5751 player 1 wins (agrees with shown probabilities)
0.3535 player 2 wins
0.0714 draws
and for the second part:
0.6405 player 1 wins (differs considerably)
0.3147 player 2 wins
0.0448 draws

Can somebody show the pseudo code ?

--Walterpachl (talk) 15:14, 16 January 2015 (UTC)