ABOUT THE FOLLOWING COMMAND: Running the ASPL script throwdice.aspl to simulate three players throwing dice on a craptable with 300 throws. The -SCT option is added at the command line to trace the script while executing the operations

bash:1 3:32:22 root@mm01 /opt/ASPLv1.00/test~/ScriptFinal/throwdice-aspl # throwdice.aspl 300 -SCT EXECUTING THE SCRIPT /opt/ASPLv1.00/shared/throwdice.aspl ASPL_LEGACY_SUBS new() SETTING ddm wS ddm=ASPL::Directory::DDM=HASH(0x7450c80) wS=ASPL::ASPL_WRKSPC=HASH(0x4e0bc28) iSPRO=ASPL::SOPVERBS=HASH(0x80a9288) ASPL_MISC_SUBS new() SETTING ddm wS ddm=ASPL::Directory::DDM=HASH(0x7450c80) wS=ASPL::ASPL_WRKSPC=HASH(0x4e0bc28) iSPRO=ASPL::SOPVERBS=HASH(0x80a9288) *** validate_script // script <<</opt/ASPLv1.00/shared/throwdice.aspl>>> *** scriptargs // $1=300 $00=throwdice.aspl $0=/opt/ASPLv1.00/shared/throwdice.aspl *** pass1_and_pass2_script // script <<</opt/ASPLv1.00/shared/throwdice.aspl>>> *** *** pass1_and_pass2_script // script <<</opt/ASPLv1.00/shared/throwdice.aspl>>> *** do_lC // SCRIPT >>> displayoff *** BLOCK0 BLOCK0 BLOCK0 // <<<displayoff>>> *** BLOCK0 NO // RETURN 0 *** BLOCK1 BLOCK1 BLOCK1 // <<<displayoff>>> *** BLOCK1 NO // RETURN 0 *** BLOCK2 BLOCK2 BLOCK2 // <<<displayoff>>> *** displayoff BLOCK2 COMMAND OK // RETURN 1 do_lC // SCRIPT >>> printblock SIMULATION FOR 3 PLAYERS THROWING DICE 300 TIMES ON A CRATABLE *** BLOCK0 BLOCK0 BLOCK0 // <<<printblock SIMULATION FOR 3 PLAYERS THROWING DICE 300 TIMES ON A CRATABLE>>> *** BLOCK0 NO // RETURN 0 *** BLOCK1 BLOCK1 BLOCK1 // <<<printblock SIMULATION FOR 3 PLAYERS THROWING DICE 300 TIMES ON A CRATABLE>>> *** BLOCK1 NO // RETURN 0 *** BLOCK2 BLOCK2 BLOCK2 // <<<printblock SIMULATION FOR 3 PLAYERS THROWING DICE 300 TIMES ON A CRATABLE>>> *** ################################################################################## ######### SIMULATION FOR 3 PLAYERS THROWING DICE 300 TIMES ON A CRATABLE ######### ################################################################################## BLOCK2 COMMAND OK // RETURN 1 do_lC // SCRIPT >>> p1 = ggthrowdice(player,player1,throws,300,dieland1trials, 5 $2,dieland2trials, 3 $3) *** BLOCK0 BLOCK0 BLOCK0 // <<<p1 = ggthrowdice(player,player1,throws,300,dieland1trials, 5 $2,dieland2trials, 3 $3)>>> *** BLOCK0 NO // RETURN 0 *** BLOCK1 BLOCK1 BLOCK1 // <<<p1 = ggthrowdice(player,player1,throws,300,dieland1trials, 5 $2,dieland2trials, 3 $3)>>> *** BLOCK1 NO // RETURN 0 *** BLOCK2 BLOCK2 BLOCK2 // <<<p1 = ggthrowdice(player,player1,throws,300,dieland1trials, 5 $2,dieland2trials, 3 $3)>>> *** BLOCK2 NO // RETURN 0 *** BLOCK3 BLOCK3 BLOCK3 // <<<p1 = ggthrowdice(player,player1,throws,300,dieland1trials, 5 $2,dieland2trials, 3 $3)>>> *** DONE PROCESSING p1 = ggthrowdice(player,player1,throws,300,dieland1trials, 5 $2,dieland2trials, 3 $3) do_lC // SCRIPT >>> p2 = ggthrowdice(player,player2,throws,300,dieland1trials, 5 $2,dieland2trials, 3 $3) *** BLOCK0 BLOCK0 BLOCK0 // <<<p2 = ggthrowdice(player,player2,throws,300,dieland1trials, 5 $2,dieland2trials, 3 $3)>>> *** BLOCK0 NO // RETURN 0 *** BLOCK1 BLOCK1 BLOCK1 // <<<p2 = ggthrowdice(player,player2,throws,300,dieland1trials, 5 $2,dieland2trials, 3 $3)>>> *** BLOCK1 NO // RETURN 0 *** BLOCK2 BLOCK2 BLOCK2 // <<<p2 = ggthrowdice(player,player2,throws,300,dieland1trials, 5 $2,dieland2trials, 3 $3)>>> *** BLOCK2 NO // RETURN 0 *** BLOCK3 BLOCK3 BLOCK3 // <<<p2 = ggthrowdice(player,player2,throws,300,dieland1trials, 5 $2,dieland2trials, 3 $3)>>> *** DONE PROCESSING p2 = ggthrowdice(player,player2,throws,300,dieland1trials, 5 $2,dieland2trials, 3 $3) do_lC // SCRIPT >>> p3 = ggthrowdice(player,player3,throws,300,dieland1trials, 5 $2,dieland2trials, 3 $3) *** BLOCK0 BLOCK0 BLOCK0 // <<<p3 = ggthrowdice(player,player3,throws,300,dieland1trials, 5 $2,dieland2trials, 3 $3)>>> *** BLOCK0 NO // RETURN 0 *** BLOCK1 BLOCK1 BLOCK1 // <<<p3 = ggthrowdice(player,player3,throws,300,dieland1trials, 5 $2,dieland2trials, 3 $3)>>> *** BLOCK1 NO // RETURN 0 *** BLOCK2 BLOCK2 BLOCK2 // <<<p3 = ggthrowdice(player,player3,throws,300,dieland1trials, 5 $2,dieland2trials, 3 $3)>>> *** BLOCK2 NO // RETURN 0 *** BLOCK3 BLOCK3 BLOCK3 // <<<p3 = ggthrowdice(player,player3,throws,300,dieland1trials, 5 $2,dieland2trials, 3 $3)>>> *** DONE PROCESSING p3 = ggthrowdice(player,player3,throws,300,dieland1trials, 5 $2,dieland2trials, 3 $3) do_lC // SCRIPT >>> ks faces face1 face2 entropy ppdd ffl aelm *** BLOCK0 BLOCK0 BLOCK0 // <<<ks faces face1 face2 entropy ppdd ffl aelm>>> *** BLOCK0 NO // RETURN 0 *** BLOCK1 BLOCK1 BLOCK1 // <<<ks faces face1 face2 entropy ppdd ffl aelm>>> *** BLOCK1 NO // RETURN 0 *** BLOCK2 BLOCK2 BLOCK2 // <<<ks faces face1 face2 entropy ppdd ffl aelm>>> *** BLOCK2 NO // RETURN 0 *** BLOCK3 BLOCK3 BLOCK3 // <<<ks faces face1 face2 entropy ppdd ffl aelm>>> *** do_lC // SCRIPT >>> displayon *** BLOCK0 BLOCK0 BLOCK0 // <<<displayon>>> *** BLOCK0 NO // RETURN 0 *** BLOCK1 BLOCK1 BLOCK1 // <<<displayon>>> *** BLOCK1 NO // RETURN 0 *** BLOCK2 BLOCK2 BLOCK2 // <<<displayon>>> *** displayon BLOCK2 COMMAND OK // RETURN 1 do_lC // SCRIPT >>> printblock SHOW THE THROW NUMBERS WHEN p1 AND p2 HAVE ABSOULTELY THE SAME OUTCOME *** BLOCK0 BLOCK0 BLOCK0 // <<<printblock SHOW THE THROW NUMBERS WHEN p1 AND p2 HAVE ABSOULTELY THE SAME OUTCOME>>> *** BLOCK0 NO // RETURN 0 *** BLOCK1 BLOCK1 BLOCK1 // <<<printblock SHOW THE THROW NUMBERS WHEN p1 AND p2 HAVE ABSOULTELY THE SAME OUTCOME>>> *** BLOCK1 NO // RETURN 0 *** BLOCK2 BLOCK2 BLOCK2 // <<<printblock SHOW THE THROW NUMBERS WHEN p1 AND p2 HAVE ABSOULTELY THE SAME OUTCOME>>> *** ################################################################################## ##### SHOW THE THROW NUMBERS WHEN p1 AND p2 HAVE ABSOULTELY THE SAME OUTCOME ##### ################################################################################## BLOCK2 COMMAND OK // RETURN 1 do_lC // SCRIPT >>> fU`ks= p1 p2 *** BLOCK0 BLOCK0 BLOCK0 // <<<fU`ks= p1 p2>>> *** BLOCK0 NO // RETURN 0 *** BLOCK1 BLOCK1 BLOCK1 // <<<fU`ks= p1 p2>>> *** BLOCK1 NO // RETURN 0 *** BLOCK2 BLOCK2 BLOCK2 // <<<fU`ks= p1 p2>>> *** BLOCK2 NO // RETURN 0 *** BLOCK3 BLOCK3 BLOCK3 // <<<fU`ks= p1 p2>>> *** INFO -- REGULAR SETOP fU ON VARIABLES p1 p2 INFO -- SETOP fU ON VARIABLES p1 p2 There are 2 sets representing: player2 player1 ** fU:f==) -- EQUAL F) fl'equal pL player2 player1 (<throw228/> / dice) fU=) dice faces=16 face1=1 face2=6 entropy=5.170 ppdd=player2 ffl=throw228/dice aelm=player2(Steve)face1(1)face2(6)faces(16)dicesum(7)chksum(6)diceord(16)ent(5.170)ent1(2.585)ent2(2.585) fU=) dice faces=16 face1=1 face2=6 entropy=5.170 ppdd=player1 ffl=throw228/dice aelm=player1(Dave)face1(1)face2(6)faces(16)dicesum(7)chksum(6)diceord(16)ent(5.170)ent1(2.585)ent2(2.585) ** fU:f==) -- EQUAL F) fl'equal pL player2 player1 (<throw233/> / dice) fU=) dice faces=21 face1=2 face2=1 entropy=5.170 ppdd=player2 ffl=throw233/dice aelm=player2(Steve)face1(2)face2(1)faces(21)dicesum(3)chksum(2)diceord(21)ent(5.170)ent1(2.585)ent2(2.585) fU=) dice faces=21 face1=2 face2=1 entropy=5.170 ppdd=player1 ffl=throw233/dice aelm=player1(Dave)face1(2)face2(1)faces(21)dicesum(3)chksum(2)diceord(12)ent(5.170)ent1(2.585)ent2(2.585) ** fU:f==) -- EQUAL F) fl'equal pL player2 player1 (<throw47/> / dice) fU=) dice faces=62 face1=6 face2=2 entropy=5.170 ppdd=player2 ffl=throw47/dice aelm=player2(Steve)face1(6)face2(2)faces(62)dicesum(8)chksum(11)diceord(26)ent(5.170)ent1(2.585)ent2(2.585) fU=) dice faces=62 face1=6 face2=2 entropy=5.170 ppdd=player1 ffl=throw47/dice aelm=player1(Dave)face1(6)face2(2)faces(62)dicesum(8)chksum(11)diceord(26)ent(5.170)ent1(2.585)ent2(2.585) player2 3 entries player1 3 entries DONE PROCESSING fU`ks= p1 p2 do_lC // SCRIPT >>> printblock SIMILARITY WHEN p1 AND p2 HAVE ABSOULTELY THE SAME OUTCOME *** BLOCK0 BLOCK0 BLOCK0 // <<<printblock SIMILARITY WHEN p1 AND p2 HAVE ABSOULTELY THE SAME OUTCOME>>> *** BLOCK0 NO // RETURN 0 *** BLOCK1 BLOCK1 BLOCK1 // <<<printblock SIMILARITY WHEN p1 AND p2 HAVE ABSOULTELY THE SAME OUTCOME>>> *** BLOCK1 NO // RETURN 0 *** BLOCK2 BLOCK2 BLOCK2 // <<<printblock SIMILARITY WHEN p1 AND p2 HAVE ABSOULTELY THE SAME OUTCOME>>> *** ################################################################################## ########### SIMILARITY WHEN p1 AND p2 HAVE ABSOULTELY THE SAME OUTCOME ########### ################################################################################## BLOCK2 COMMAND OK // RETURN 1 do_lC // SCRIPT >>> sim`fflz p1 p2 *** BLOCK0 BLOCK0 BLOCK0 // <<<sim`fflz p1 p2>>> *** BLOCK0 NO // RETURN 0 *** BLOCK1 BLOCK1 BLOCK1 // <<<sim`fflz p1 p2>>> *** BLOCK1 NO // RETURN 0 *** BLOCK2 BLOCK2 BLOCK2 // <<<sim`fflz p1 p2>>> *** BLOCK2 NO // RETURN 0 *** BLOCK3 BLOCK3 BLOCK3 // <<<sim`fflz p1 p2>>> *** INFO -- REGULAR SETOP similarity`fflz ON VARIABLES p1 p2 INFO -- similarity`fflz BETWEEN p1 p2 subset1 vs subset2 similarity player2(2.p2) | player1(1.p1) 0.01000 DONE PROCESSING sim`fflz p1 p2 do_lC // SCRIPT >>> printblock SHOW THE THROW NUMBERS WHEN ALL 3 PLAYERS HAVE ABSOULTELY THE SAME OUTCOME *** BLOCK0 BLOCK0 BLOCK0 // <<<printblock SHOW THE THROW NUMBERS WHEN ALL 3 PLAYERS HAVE ABSOULTELY THE SAME OUTCOME>>> *** BLOCK0 NO // RETURN 0 *** BLOCK1 BLOCK1 BLOCK1 // <<<printblock SHOW THE THROW NUMBERS WHEN ALL 3 PLAYERS HAVE ABSOULTELY THE SAME OUTCOME>>> *** BLOCK1 NO // RETURN 0 *** BLOCK2 BLOCK2 BLOCK2 // <<<printblock SHOW THE THROW NUMBERS WHEN ALL 3 PLAYERS HAVE ABSOULTELY THE SAME OUTCOME>>> *** ################################################################################## ### SHOW THE THROW NUMBERS WHEN ALL 3 PLAYERS HAVE ABSOULTELY THE SAME OUTCOME ### ################################################################################## BLOCK2 COMMAND OK // RETURN 1 do_lC // SCRIPT >>> fU`ks= p1 p2 p3 *** BLOCK0 BLOCK0 BLOCK0 // <<<fU`ks= p1 p2 p3>>> *** BLOCK0 NO // RETURN 0 *** BLOCK1 BLOCK1 BLOCK1 // <<<fU`ks= p1 p2 p3>>> *** BLOCK1 NO // RETURN 0 *** BLOCK2 BLOCK2 BLOCK2 // <<<fU`ks= p1 p2 p3>>> *** BLOCK2 NO // RETURN 0 *** BLOCK3 BLOCK3 BLOCK3 // <<<fU`ks= p1 p2 p3>>> *** INFO -- REGULAR SETOP fU ON VARIABLES p1 p2 p3 INFO -- SETOP fU ON VARIABLES p1 p2 p3 There are 0 sets representing: DONE PROCESSING fU`ks= p1 p2 p3 do_lC // SCRIPT >>> printblock SIMILARITY WHEN ALL 3 PLAYERS HAVE ABSOULTELY THE SAME OUTCOME *** BLOCK0 BLOCK0 BLOCK0 // <<<printblock SIMILARITY WHEN ALL 3 PLAYERS HAVE ABSOULTELY THE SAME OUTCOME>>> *** BLOCK0 NO // RETURN 0 *** BLOCK1 BLOCK1 BLOCK1 // <<<printblock SIMILARITY WHEN ALL 3 PLAYERS HAVE ABSOULTELY THE SAME OUTCOME>>> *** BLOCK1 NO // RETURN 0 *** BLOCK2 BLOCK2 BLOCK2 // <<<printblock SIMILARITY WHEN ALL 3 PLAYERS HAVE ABSOULTELY THE SAME OUTCOME>>> *** ################################################################################## ######### SIMILARITY WHEN ALL 3 PLAYERS HAVE ABSOULTELY THE SAME OUTCOME ######### ################################################################################## BLOCK2 COMMAND OK // RETURN 1 do_lC // SCRIPT >>> sim`fflz p1 p2 p3 *** BLOCK0 BLOCK0 BLOCK0 // <<<sim`fflz p1 p2 p3>>> *** BLOCK0 NO // RETURN 0 *** BLOCK1 BLOCK1 BLOCK1 // <<<sim`fflz p1 p2 p3>>> *** BLOCK1 NO // RETURN 0 *** BLOCK2 BLOCK2 BLOCK2 // <<<sim`fflz p1 p2 p3>>> *** BLOCK2 NO // RETURN 0 *** BLOCK3 BLOCK3 BLOCK3 // <<<sim`fflz p1 p2 p3>>> *** INFO -- REGULAR SETOP similarity`fflz ON VARIABLES p1 p2 p3 INFO -- similarity`fflz BETWEEN p1 p2 p3 subset1 vs subset2 similarity 1 player3(3.p3) | player1(1.p1) 0.01667 2 player2(2.p2) | player1(1.p1) 0.01000 3 player2(2.p2) | player3(3.p3) 0.03333 player3(3.p3) | player1(1.p1) | ################### 0.01667 player2(2.p2) | player1(1.p1) | ########### 0.01000 player2(2.p2) | player3(3.p3) | ######################################## 0.03333 DONE PROCESSING sim`fflz p1 p2 p3 do_lC // SCRIPT >>> ks dicesum ppdd ffl aelm *** BLOCK0 BLOCK0 BLOCK0 // <<<ks dicesum ppdd ffl aelm>>> *** BLOCK0 NO // RETURN 0 *** BLOCK1 BLOCK1 BLOCK1 // <<<ks dicesum ppdd ffl aelm>>> *** BLOCK1 NO // RETURN 0 *** BLOCK2 BLOCK2 BLOCK2 // <<<ks dicesum ppdd ffl aelm>>> *** BLOCK2 NO // RETURN 0 *** BLOCK3 BLOCK3 BLOCK3 // <<<ks dicesum ppdd ffl aelm>>> *** aStat = dicesum ppdd ffl aelm bStat = dicesum ppdd ffl aelm do_lC // SCRIPT >>> printblock SHOW THE THROW NUMBERS WHEN ALL 3 PLAYERS HAVE THE SAME SUM *** BLOCK0 BLOCK0 BLOCK0 // <<<printblock SHOW THE THROW NUMBERS WHEN ALL 3 PLAYERS HAVE THE SAME SUM>>> *** BLOCK0 NO // RETURN 0 *** BLOCK1 BLOCK1 BLOCK1 // <<<printblock SHOW THE THROW NUMBERS WHEN ALL 3 PLAYERS HAVE THE SAME SUM>>> *** BLOCK1 NO // RETURN 0 *** BLOCK2 BLOCK2 BLOCK2 // <<<printblock SHOW THE THROW NUMBERS WHEN ALL 3 PLAYERS HAVE THE SAME SUM>>> *** ################################################################################## ########## SHOW THE THROW NUMBERS WHEN ALL 3 PLAYERS HAVE THE SAME SUM ########### ################################################################################## BLOCK2 COMMAND OK // RETURN 1 do_lC // SCRIPT >>> fU`ks= p1 p2 p3 *** BLOCK0 BLOCK0 BLOCK0 // <<<fU`ks= p1 p2 p3>>> *** BLOCK0 NO // RETURN 0 *** BLOCK1 BLOCK1 BLOCK1 // <<<fU`ks= p1 p2 p3>>> *** BLOCK1 NO // RETURN 0 *** BLOCK2 BLOCK2 BLOCK2 // <<<fU`ks= p1 p2 p3>>> *** BLOCK2 NO // RETURN 0 *** BLOCK3 BLOCK3 BLOCK3 // <<<fU`ks= p1 p2 p3>>> *** INFO -- REGULAR SETOP fU ON VARIABLES p1 p2 p3 INFO -- SETOP fU ON VARIABLES p1 p2 p3 There are 3 sets representing: player3 player2 player1 ** fU:f==) -- EQUAL F) fl'equal pL player3 player2 player1 (<throw150/> / dice) fU=) dice dicesum=7 ppdd=player3 ffl=throw150/dice aelm=player3(Bob)face1(2)face2(5)faces(25)dicesum(7)chksum(10)diceord(52)ent(5.170)ent1(2.585)ent2(2.585) fU=) dice dicesum=7 ppdd=player2 ffl=throw150/dice aelm=player2(Steve)face1(6)face2(1)faces(61)dicesum(7)chksum(6)diceord(16)ent(5.170)ent1(2.585)ent2(2.585) fU=) dice dicesum=7 ppdd=player1 ffl=throw150/dice aelm=player1(Dave)face1(2)face2(5)faces(25)dicesum(7)chksum(10)diceord(25)ent(5.170)ent1(2.585)ent2(2.585) ** fU:f==) -- EQUAL F) fl'equal pL player3 player2 player1 (<throw209/> / dice) fU=) dice dicesum=7 ppdd=player3 ffl=throw209/dice aelm=player3(Bob)face1(5)face2(2)faces(52)dicesum(7)chksum(10)diceord(52)ent(5.170)ent1(2.585)ent2(2.585) fU=) dice dicesum=7 ppdd=player2 ffl=throw209/dice aelm=player2(Steve)face1(2)face2(5)faces(25)dicesum(7)chksum(10)diceord(25)ent(5.170)ent1(2.585)ent2(2.585) fU=) dice dicesum=7 ppdd=player1 ffl=throw209/dice aelm=player1(Dave)face1(4)face2(3)faces(43)dicesum(7)chksum(13)diceord(34)ent(5.170)ent1(2.585)ent2(2.585) ** fU:f==) -- EQUAL F) fl'equal pL player3 player2 player1 (<throw254/> / dice) fU=) dice dicesum=11 ppdd=player3 ffl=throw254/dice aelm=player3(Bob)face1(6)face2(5)faces(65)dicesum(11)chksum(20)diceord(56)ent(5.170)ent1(2.585)ent2(2.585) fU=) dice dicesum=11 ppdd=player2 ffl=throw254/dice aelm=player2(Steve)face1(5)face2(6)faces(56)dicesum(11)chksum(20)diceord(56)ent(5.170)ent1(2.585)ent2(2.585) fU=) dice dicesum=11 ppdd=player1 ffl=throw254/dice aelm=player1(Dave)face1(6)face2(5)faces(65)dicesum(11)chksum(20)diceord(65)ent(5.170)ent1(2.585)ent2(2.585) ** fU:f==) -- EQUAL F) fl'equal pL player3 player2 player1 (<throw284/> / dice) fU=) dice dicesum=5 ppdd=player3 ffl=throw284/dice aelm=player3(Bob)face1(2)face2(3)faces(23)dicesum(5)chksum(8)diceord(23)ent(5.170)ent1(2.585)ent2(2.585) fU=) dice dicesum=5 ppdd=player2 ffl=throw284/dice aelm=player2(Steve)face1(3)face2(2)faces(32)dicesum(5)chksum(8)diceord(32)ent(5.170)ent1(2.585)ent2(2.585) fU=) dice dicesum=5 ppdd=player1 ffl=throw284/dice aelm=player1(Dave)face1(4)face2(1)faces(41)dicesum(5)chksum(4)diceord(14)ent(5.170)ent1(2.585)ent2(2.585) ** fU:f==) -- EQUAL F) fl'equal pL player3 player2 player1 (<throw300/> / dice) fU=) dice dicesum=7 ppdd=player3 ffl=throw300/dice aelm=player3(Bob)face1(2)face2(5)faces(25)dicesum(7)chksum(10)diceord(52)ent(5.170)ent1(2.585)ent2(2.585) fU=) dice dicesum=7 ppdd=player2 ffl=throw300/dice aelm=player2(Steve)face1(1)face2(6)faces(16)dicesum(7)chksum(6)diceord(16)ent(5.170)ent1(2.585)ent2(2.585) fU=) dice dicesum=7 ppdd=player1 ffl=throw300/dice aelm=player1(Dave)face1(6)face2(1)faces(61)dicesum(7)chksum(6)diceord(16)ent(5.170)ent1(2.585)ent2(2.585) ** fU:f==) -- EQUAL F) fl'equal pL player3 player2 player1 (<throw95/> / dice) fU=) dice dicesum=5 ppdd=player3 ffl=throw95/dice aelm=player3(Bob)face1(1)face2(4)faces(14)dicesum(5)chksum(4)diceord(41)ent(5.170)ent1(2.585)ent2(2.585) fU=) dice dicesum=5 ppdd=player2 ffl=throw95/dice aelm=player2(Steve)face1(1)face2(4)faces(14)dicesum(5)chksum(4)diceord(14)ent(5.170)ent1(2.585)ent2(2.585) fU=) dice dicesum=5 ppdd=player1 ffl=throw95/dice aelm=player1(Dave)face1(4)face2(1)faces(41)dicesum(5)chksum(4)diceord(14)ent(5.170)ent1(2.585)ent2(2.585) player3 6 entries player2 6 entries player1 6 entries DONE PROCESSING fU`ks= p1 p2 p3 do_lC // SCRIPT >>> printblock SIMILARITY WHEN ALL 3 PLAYERS HAVE SAME SUM *** BLOCK0 BLOCK0 BLOCK0 // <<<printblock SIMILARITY WHEN ALL 3 PLAYERS HAVE SAME SUM>>> *** BLOCK0 NO // RETURN 0 *** BLOCK1 BLOCK1 BLOCK1 // <<<printblock SIMILARITY WHEN ALL 3 PLAYERS HAVE SAME SUM>>> *** BLOCK1 NO // RETURN 0 *** BLOCK2 BLOCK2 BLOCK2 // <<<printblock SIMILARITY WHEN ALL 3 PLAYERS HAVE SAME SUM>>> *** ################################################################################## ################## SIMILARITY WHEN ALL 3 PLAYERS HAVE SAME SUM ################### ################################################################################## BLOCK2 COMMAND OK // RETURN 1 do_lC // SCRIPT >>> sim`fflz p1 p2 p3 *** BLOCK0 BLOCK0 BLOCK0 // <<<sim`fflz p1 p2 p3>>> *** BLOCK0 NO // RETURN 0 *** BLOCK1 BLOCK1 BLOCK1 // <<<sim`fflz p1 p2 p3>>> *** BLOCK1 NO // RETURN 0 *** BLOCK2 BLOCK2 BLOCK2 // <<<sim`fflz p1 p2 p3>>> *** BLOCK2 NO // RETURN 0 *** BLOCK3 BLOCK3 BLOCK3 // <<<sim`fflz p1 p2 p3>>> *** INFO -- REGULAR SETOP similarity`fflz ON VARIABLES p1 p2 p3 INFO -- similarity`fflz BETWEEN p1 p2 p3 subset1 vs subset2 similarity 1 player3(3.p3) | player1(1.p1) 0.11333 2 player2(2.p2) | player1(1.p1) 0.10667 3 player2(2.p2) | player3(3.p3) 0.12333 player3(3.p3) | player1(1.p1) | #################################### 0.11333 player2(2.p2) | player1(1.p1) | ################################## 0.10667 player2(2.p2) | player3(3.p3) | ######################################## 0.12333 DONE PROCESSING sim`fflz p1 p2 p3 do_lC // SCRIPT >>> ks diceord ppdd ffl aelm *** BLOCK0 BLOCK0 BLOCK0 // <<<ks diceord ppdd ffl aelm>>> *** BLOCK0 NO // RETURN 0 *** BLOCK1 BLOCK1 BLOCK1 // <<<ks diceord ppdd ffl aelm>>> *** BLOCK1 NO // RETURN 0 *** BLOCK2 BLOCK2 BLOCK2 // <<<ks diceord ppdd ffl aelm>>> *** BLOCK2 NO // RETURN 0 *** BLOCK3 BLOCK3 BLOCK3 // <<<ks diceord ppdd ffl aelm>>> *** aStat = diceord ppdd ffl aelm bStat = diceord ppdd ffl aelm do_lC // SCRIPT >>> printblock SHOW THE THROW NUMBERS WHEN p1 AND p2 HAVE THE SAME DICE LANDING ORDER *** BLOCK0 BLOCK0 BLOCK0 // <<<printblock SHOW THE THROW NUMBERS WHEN p1 AND p2 HAVE THE SAME DICE LANDING ORDER>>> *** BLOCK0 NO // RETURN 0 *** BLOCK1 BLOCK1 BLOCK1 // <<<printblock SHOW THE THROW NUMBERS WHEN p1 AND p2 HAVE THE SAME DICE LANDING ORDER>>> *** BLOCK1 NO // RETURN 0 *** BLOCK2 BLOCK2 BLOCK2 // <<<printblock SHOW THE THROW NUMBERS WHEN p1 AND p2 HAVE THE SAME DICE LANDING ORDER>>> *** ################################################################################## ##### SHOW THE THROW NUMBERS WHEN p1 AND p2 HAVE THE SAME DICE LANDING ORDER ##### ################################################################################## BLOCK2 COMMAND OK // RETURN 1 do_lC // SCRIPT >>> fU`ks= p1 p2 *** BLOCK0 BLOCK0 BLOCK0 // <<<fU`ks= p1 p2>>> *** BLOCK0 NO // RETURN 0 *** BLOCK1 BLOCK1 BLOCK1 // <<<fU`ks= p1 p2>>> *** BLOCK1 NO // RETURN 0 *** BLOCK2 BLOCK2 BLOCK2 // <<<fU`ks= p1 p2>>> *** BLOCK2 NO // RETURN 0 *** BLOCK3 BLOCK3 BLOCK3 // <<<fU`ks= p1 p2>>> *** INFO -- REGULAR SETOP fU ON VARIABLES p1 p2 INFO -- SETOP fU ON VARIABLES p1 p2 There are 2 sets representing: player2 player1 ** fU:f==) -- EQUAL F) fl'equal pL player2 player1 (<throw139/> / dice) fU=) dice diceord=21 ppdd=player2 ffl=throw139/dice aelm=player2(Steve)face1(2)face2(1)faces(21)dicesum(3)chksum(2)diceord(21)ent(5.170)ent1(2.585)ent2(2.585) fU=) dice diceord=21 ppdd=player1 ffl=throw139/dice aelm=player1(Dave)face1(1)face2(2)faces(12)dicesum(3)chksum(2)diceord(21)ent(5.170)ent1(2.585)ent2(2.585) ** fU:f==) -- EQUAL F) fl'equal pL player2 player1 (<throw142/> / dice) fU=) dice diceord=42 ppdd=player2 ffl=throw142/dice aelm=player2(Steve)face1(2)face2(4)faces(24)dicesum(6)chksum(9)diceord(42)ent(5.170)ent1(2.585)ent2(2.585) fU=) dice diceord=42 ppdd=player1 ffl=throw142/dice aelm=player1(Dave)face1(4)face2(2)faces(42)dicesum(6)chksum(9)diceord(42)ent(5.170)ent1(2.585)ent2(2.585) ** fU:f==) -- EQUAL F) fl'equal pL player2 player1 (<throw228/> / dice) fU=) dice diceord=16 ppdd=player2 ffl=throw228/dice aelm=player2(Steve)face1(1)face2(6)faces(16)dicesum(7)chksum(6)diceord(16)ent(5.170)ent1(2.585)ent2(2.585) fU=) dice diceord=16 ppdd=player1 ffl=throw228/dice aelm=player1(Dave)face1(1)face2(6)faces(16)dicesum(7)chksum(6)diceord(16)ent(5.170)ent1(2.585)ent2(2.585) ** fU:f==) -- EQUAL F) fl'equal pL player2 player1 (<throw237/> / dice) fU=) dice diceord=61 ppdd=player2 ffl=throw237/dice aelm=player2(Steve)face1(1)face2(6)faces(16)dicesum(7)chksum(6)diceord(61)ent(5.170)ent1(2.585)ent2(2.585) fU=) dice diceord=61 ppdd=player1 ffl=throw237/dice aelm=player1(Dave)face1(6)face2(1)faces(61)dicesum(7)chksum(6)diceord(61)ent(5.170)ent1(2.585)ent2(2.585) ** fU:f==) -- EQUAL F) fl'equal pL player2 player1 (<throw300/> / dice) fU=) dice diceord=16 ppdd=player2 ffl=throw300/dice aelm=player2(Steve)face1(1)face2(6)faces(16)dicesum(7)chksum(6)diceord(16)ent(5.170)ent1(2.585)ent2(2.585) fU=) dice diceord=16 ppdd=player1 ffl=throw300/dice aelm=player1(Dave)face1(6)face2(1)faces(61)dicesum(7)chksum(6)diceord(16)ent(5.170)ent1(2.585)ent2(2.585) ** fU:f==) -- EQUAL F) fl'equal pL player2 player1 (<throw47/> / dice) fU=) dice diceord=26 ppdd=player2 ffl=throw47/dice aelm=player2(Steve)face1(6)face2(2)faces(62)dicesum(8)chksum(11)diceord(26)ent(5.170)ent1(2.585)ent2(2.585) fU=) dice diceord=26 ppdd=player1 ffl=throw47/dice aelm=player1(Dave)face1(6)face2(2)faces(62)dicesum(8)chksum(11)diceord(26)ent(5.170)ent1(2.585)ent2(2.585) ** fU:f==) -- EQUAL F) fl'equal pL player2 player1 (<throw95/> / dice) fU=) dice diceord=14 ppdd=player2 ffl=throw95/dice aelm=player2(Steve)face1(1)face2(4)faces(14)dicesum(5)chksum(4)diceord(14)ent(5.170)ent1(2.585)ent2(2.585) fU=) dice diceord=14 ppdd=player1 ffl=throw95/dice aelm=player1(Dave)face1(4)face2(1)faces(41)dicesum(5)chksum(4)diceord(14)ent(5.170)ent1(2.585)ent2(2.585) player2 7 entries player1 7 entries DONE PROCESSING fU`ks= p1 p2 pass2 // ---> [displayoff] pass2 // ---> [printblock SIMULATION FOR 3 PLAYERS THROWING DICE 300 TIMES ON A CRATABLE] pass2 // ---> [p1 = ggthrowdice(player,player1,throws,300,dieland1trials, 5 $2,dieland2trials, 3 $3)] pass2 // ---> [p2 = ggthrowdice(player,player2,throws,300,dieland1trials, 5 $2,dieland2trials, 3 $3)] pass2 // ---> [p3 = ggthrowdice(player,player3,throws,300,dieland1trials, 5 $2,dieland2trials, 3 $3)] pass2 // ---> [ks faces face1 face2 entropy ppdd ffl aelm] pass2 // ---> [displayon] pass2 // ---> [printblock SHOW THE THROW NUMBERS WHEN p1 AND p2 HAVE ABSOULTELY THE SAME OUTCOME] pass2 // ---> [fU`ks= p1 p2] pass2 // ---> [printblock SIMILARITY WHEN p1 AND p2 HAVE ABSOULTELY THE SAME OUTCOME] pass2 // ---> [sim`fflz p1 p2] pass2 // ---> [printblock SHOW THE THROW NUMBERS WHEN ALL 3 PLAYERS HAVE ABSOULTELY THE SAME OUTCOME] pass2 // ---> [fU`ks= p1 p2 p3] pass2 // ---> [printblock SIMILARITY WHEN ALL 3 PLAYERS HAVE ABSOULTELY THE SAME OUTCOME] pass2 // ---> [sim`fflz p1 p2 p3] pass2 // ---> [ks dicesum ppdd ffl aelm] pass2 // ---> [printblock SHOW THE THROW NUMBERS WHEN ALL 3 PLAYERS HAVE THE SAME SUM] pass2 // ---> [fU`ks= p1 p2 p3] pass2 // ---> [printblock SIMILARITY WHEN ALL 3 PLAYERS HAVE SAME SUM] pass2 // ---> [sim`fflz p1 p2 p3] pass2 // ---> [ks diceord ppdd ffl aelm] pass2 // ---> [printblock SHOW THE THROW NUMBERS WHEN p1 AND p2 HAVE THE SAME DICE LANDING ORDER] pass2 // ---> [fU`ks= p1 p2] bash:2 3:32:49 root@mm01 /opt/ASPLv1.00/test~/ScriptFinal/throwdice-aspl #