( ** Go back to PARENTPAGE ../Script-randomdice-aspl-35.html)
( ** Go back to HOMESITE https://www.tcnd.com)
( ** Go back to SetSphere https://www.setsphere.com)

Simulating three players rolling dice on a craptable with unfair or bias dice rolling

In the following simulation we show three players rolling dice on a craptable. This simulation shows an unfair dice roll between the three players. The simulation is biased since the throw is retried a number of times to to reach a specific outcome. The simulation shows how entropy decreases as the bias decreases.

ASPL 1> displayoff
turn display off

ASPL 2> print SIMULATION FOR 3 PLAYERS THROWING 900 TIMES DICE ON A CRATABLE

ASPL 3> println

ASPL 4> p1 = ggdice(player,player1,throws,900,die1trials, 5 3,die2trials, 3 5)
p1 is assigned to group of throws for player1, unfair or biases dice rolling as one die is retried three times in the hope to realize face with 5 dots, and the other die is retried five times in the hope to realize face with 3 dots

ASPL 5> p2 = ggdice(player,player2,throws,900,die1trials, 5 3,die2trials, 3 5)
p2 is assigned to group of throws for player2, unfair or biases dice rolling as one die is retried three times in the hope to realize face with 5 dots, and the other die is retried five times in the hope to realize face with 3 dots

ASPL 6> p3 = ggdice(player,player3,throws,900,die1trials, 5 3,die2trials, 3 5)
p3 is assigned to group of throws for player3, unfair or biases dice rolling as one die is retried three times in the hope to realize face with 5 dots, and the other die is retried five times in the hope to realize face with 3 dots

ASPL 7> ks faces face1 face2 chksum entropy ppdd ffl aelm
set ks vector to faces face1 face2 chksum entropy ppdd ffl aelm

ASPL 8> displayon
turn display on

ASPL 9> print # SHOW THE THROW NUMBERS WHEN p1 AND p2 HAVE ABSOULTELY THE SAME OUTCOME

ASPL 10> fU`ks= p1 p2
SHOW THE THROW NUMBERS WHEN player1 AND player2 HAVE ABSOULTELY THE SAME OUTCOME

ASPL 11> print # SIMILARITY WHEN p1 AND p2 HAVE ABSOULTELY THE SAME OUTCOME

ASPL 12> sim`fflz p1 p2
SIMILARITY WHEN p1 AND p2 HAVE ABSOULTELY THE SAME OUTCOME

ASPL 13> print # SHOW THE THROW NUMBERS WHEN ALL 3 PLAYERS HAVE ABSOULTELY THE SAME OUTCOME

ASPL 14> fU`ks= p1 p2 p3
SHOW THE THROW NUMBERS WHEN ALL THREE PLAYERS HAVE ABSOULTELY THE SAME OUTCOME

ASPL 15> print # SIMILARITY WHEN ALL 3 PLAYERS HAVE ABSOULTELY THE SAME OUTCOME

ASPL 16> sim`fflz p1 p2 p3
SIMILARITY WHEN ALL THREE PLAYERS HAVE ABSOULTELY THE SAME OUTCOME

ASPL 17> print # SHOW THE THROW NUMBERS WHEN ALL 3 PLAYERS HAVE THE SAME SUM

ASPL 18> fU`c= p1 p2 p3
SHOW THE THROW NUMBERS WHEN ALL THREE PLAYERS HAVE THE SAME SUM

ASPL 19> print # SIMILARITY WHEN ALL 3 PLAYERS HAVE SAME SUM

ASPL 20> sim`fflc p1 p2 p3
SIMILARITY WHEN ALL THREE PLAYERS HAVE SAME SUM