fork download
  1. <?php
  2. header("Content-Type: text/plain; charset=utf-8");
  3. ?>
  4.  
  5. <?php
  6. class Player
  7. {
  8. public $name;
  9. public $icon;
  10. public $isWinner;
  11. public $position;
  12. public function __construct($name, $icon)
  13. {
  14. $this->name = $name;
  15. $this->icon = $icon;
  16. $this->position = 1;
  17. }
  18. public function getRoll()
  19. {
  20. $roll = mt_rand(1, 6);
  21. return $roll;
  22. }
  23. public function getMove()
  24. {
  25. global $desk;
  26. $round = 1;
  27. $lastPosition = $this->position;
  28. $roll = $this->getRoll();
  29. $this->position += $roll;
  30.  
  31. echo "Rolling the dice for $this->name ($this->icon): $roll \n";
  32. foreach ($desk->cases as $key => $value) {
  33. if ($this->position == $key) {
  34. echo "$this->name is moving from $this->position to ";
  35. $this->position = $value;
  36. echo "$this->position \n";
  37. }
  38. }
  39. if (100 - $lastPosition < $roll) {
  40. $this->position = 100;
  41. }
  42.  
  43. if ($this->position == 100) {
  44. echo "CONGRATULATION: $this->name ($this->icon) - THE WINNER!!! \n";
  45. $this->isWinner = 1;
  46. return $this->isWinner;
  47. }
  48.  
  49. }
  50.  
  51. }
  52. class Desk
  53. {
  54. public $cases;
  55.  
  56. public function __construct()
  57. {
  58. $this->cases = array(
  59. 4 => 42,
  60. 16 => 8,
  61. 9 => 30,
  62. 32 => 12,
  63. 14 => 77,
  64. 62 => 19,
  65. 80 => 98,
  66. 96 => 76,
  67. 71 => 67,
  68. 48 => 73,
  69. 37 => 58,
  70. 47 => 26,
  71. 70 => 89
  72. );
  73. }
  74. public function createDesk()
  75. {
  76. $zone = array();
  77. $k = 1;
  78. for ($i = 0; $i <= 99; $i++) {
  79. $zone[] = $k++;
  80.  
  81. }
  82. return $zone;
  83. }
  84. }
  85. $desk = new Desk;
  86. $player1 = new Player('Player1', '@');
  87. $player2 = new Player('Player2', '#');
  88. $player3 = new Player('Player3', '*');
  89. $player4 = new Player('Player4', '%');
  90.  
  91. $players = array(
  92. $player1,
  93. $player2,
  94. $player3,
  95. $player4
  96. );
  97. $round = 1;
  98. function padRight($string)
  99. {
  100. $count = 50 - mb_strlen($string);
  101. if ($count <= 0) {
  102. return $string;
  103. }
  104. $space = str_repeat(' ', $count / 2);
  105. return $space . $string . $space;
  106. }
  107.  
  108. function getShow($players, $desk)
  109. {
  110.  
  111. $zone = $desk->createDesk();
  112. foreach ($zone as &$square) {
  113. foreach ($players as $player) {
  114. if ($square == $player->position) {
  115. $square .= $player->icon;
  116. }
  117. }
  118. }
  119.  
  120.  
  121. $text = '';
  122. $k = 1;
  123. foreach ($zone as $position) {
  124. echo " $position ";
  125. if ($k == (ceil($k / 10)) * 10)
  126. {
  127. echo "\n";
  128. }
  129. $k++;
  130. }
  131. }
  132.  
  133.  
  134.  
  135.  
  136. function getGame($array, $desk)
  137. {
  138. global $round;
  139. global $players;
  140. do {
  141. foreach ($array as $player) {
  142.  
  143. $player->getMove();
  144.  
  145. if ($player->isWinner == 1) {
  146. return $player->name;
  147. }
  148. echo getShow($players, $desk);
  149. }
  150.  
  151. echo str_repeat('_', 50) . "\n";
  152. echo "End of $round round \n";
  153. $round++;
  154. } while ($player->isWinner == 0);
  155.  
  156. }
  157. getGame($players, $desk);
  158.  
Success #stdin #stdout 0.04s 20568KB
stdin
Standard input is empty
stdout
Rolling the dice for Player1 (@): 2 
 1#*%  2  3@  4  5  6  7  8  9  10 
 11  12  13  14  15  16  17  18  19  20 
 21  22  23  24  25  26  27  28  29  30 
 31  32  33  34  35  36  37  38  39  40 
 41  42  43  44  45  46  47  48  49  50 
 51  52  53  54  55  56  57  58  59  60 
 61  62  63  64  65  66  67  68  69  70 
 71  72  73  74  75  76  77  78  79  80 
 81  82  83  84  85  86  87  88  89  90 
 91  92  93  94  95  96  97  98  99  100 
Rolling the dice for Player2 (#): 5 
 1*%  2  3@  4  5  6#  7  8  9  10 
 11  12  13  14  15  16  17  18  19  20 
 21  22  23  24  25  26  27  28  29  30 
 31  32  33  34  35  36  37  38  39  40 
 41  42  43  44  45  46  47  48  49  50 
 51  52  53  54  55  56  57  58  59  60 
 61  62  63  64  65  66  67  68  69  70 
 71  72  73  74  75  76  77  78  79  80 
 81  82  83  84  85  86  87  88  89  90 
 91  92  93  94  95  96  97  98  99  100 
Rolling the dice for Player3 (*): 4 
 1%  2  3@  4  5*  6#  7  8  9  10 
 11  12  13  14  15  16  17  18  19  20 
 21  22  23  24  25  26  27  28  29  30 
 31  32  33  34  35  36  37  38  39  40 
 41  42  43  44  45  46  47  48  49  50 
 51  52  53  54  55  56  57  58  59  60 
 61  62  63  64  65  66  67  68  69  70 
 71  72  73  74  75  76  77  78  79  80 
 81  82  83  84  85  86  87  88  89  90 
 91  92  93  94  95  96  97  98  99  100 
Rolling the dice for Player4 (%): 5 
 1  2  3@  4  5*  6#%  7  8  9  10 
 11  12  13  14  15  16  17  18  19  20 
 21  22  23  24  25  26  27  28  29  30 
 31  32  33  34  35  36  37  38  39  40 
 41  42  43  44  45  46  47  48  49  50 
 51  52  53  54  55  56  57  58  59  60 
 61  62  63  64  65  66  67  68  69  70 
 71  72  73  74  75  76  77  78  79  80 
 81  82  83  84  85  86  87  88  89  90 
 91  92  93  94  95  96  97  98  99  100 
__________________________________________________
End of 1 round 
Rolling the dice for Player1 (@): 2 
 1  2  3  4  5@*  6#%  7  8  9  10 
 11  12  13  14  15  16  17  18  19  20 
 21  22  23  24  25  26  27  28  29  30 
 31  32  33  34  35  36  37  38  39  40 
 41  42  43  44  45  46  47  48  49  50 
 51  52  53  54  55  56  57  58  59  60 
 61  62  63  64  65  66  67  68  69  70 
 71  72  73  74  75  76  77  78  79  80 
 81  82  83  84  85  86  87  88  89  90 
 91  92  93  94  95  96  97  98  99  100 
Rolling the dice for Player2 (#): 6 
 1  2  3  4  5@*  6%  7  8  9  10 
 11  12#  13  14  15  16  17  18  19  20 
 21  22  23  24  25  26  27  28  29  30 
 31  32  33  34  35  36  37  38  39  40 
 41  42  43  44  45  46  47  48  49  50 
 51  52  53  54  55  56  57  58  59  60 
 61  62  63  64  65  66  67  68  69  70 
 71  72  73  74  75  76  77  78  79  80 
 81  82  83  84  85  86  87  88  89  90 
 91  92  93  94  95  96  97  98  99  100 
Rolling the dice for Player3 (*): 2 
 1  2  3  4  5@  6%  7*  8  9  10 
 11  12#  13  14  15  16  17  18  19  20 
 21  22  23  24  25  26  27  28  29  30 
 31  32  33  34  35  36  37  38  39  40 
 41  42  43  44  45  46  47  48  49  50 
 51  52  53  54  55  56  57  58  59  60 
 61  62  63  64  65  66  67  68  69  70 
 71  72  73  74  75  76  77  78  79  80 
 81  82  83  84  85  86  87  88  89  90 
 91  92  93  94  95  96  97  98  99  100 
Rolling the dice for Player4 (%): 4 
 1  2  3  4  5@  6  7*  8  9  10% 
 11  12#  13  14  15  16  17  18  19  20 
 21  22  23  24  25  26  27  28  29  30 
 31  32  33  34  35  36  37  38  39  40 
 41  42  43  44  45  46  47  48  49  50 
 51  52  53  54  55  56  57  58  59  60 
 61  62  63  64  65  66  67  68  69  70 
 71  72  73  74  75  76  77  78  79  80 
 81  82  83  84  85  86  87  88  89  90 
 91  92  93  94  95  96  97  98  99  100 
__________________________________________________
End of 2 round 
Rolling the dice for Player1 (@): 6 
 1  2  3  4  5  6  7*  8  9  10% 
 11@  12#  13  14  15  16  17  18  19  20 
 21  22  23  24  25  26  27  28  29  30 
 31  32  33  34  35  36  37  38  39  40 
 41  42  43  44  45  46  47  48  49  50 
 51  52  53  54  55  56  57  58  59  60 
 61  62  63  64  65  66  67  68  69  70 
 71  72  73  74  75  76  77  78  79  80 
 81  82  83  84  85  86  87  88  89  90 
 91  92  93  94  95  96  97  98  99  100 
Rolling the dice for Player2 (#): 4 
Player2 is moving from 16 to 8 
 1  2  3  4  5  6  7*  8#  9  10% 
 11@  12  13  14  15  16  17  18  19  20 
 21  22  23  24  25  26  27  28  29  30 
 31  32  33  34  35  36  37  38  39  40 
 41  42  43  44  45  46  47  48  49  50 
 51  52  53  54  55  56  57  58  59  60 
 61  62  63  64  65  66  67  68  69  70 
 71  72  73  74  75  76  77  78  79  80 
 81  82  83  84  85  86  87  88  89  90 
 91  92  93  94  95  96  97  98  99  100 
Rolling the dice for Player3 (*): 1 
 1  2  3  4  5  6  7  8#*  9  10% 
 11@  12  13  14  15  16  17  18  19  20 
 21  22  23  24  25  26  27  28  29  30 
 31  32  33  34  35  36  37  38  39  40 
 41  42  43  44  45  46  47  48  49  50 
 51  52  53  54  55  56  57  58  59  60 
 61  62  63  64  65  66  67  68  69  70 
 71  72  73  74  75  76  77  78  79  80 
 81  82  83  84  85  86  87  88  89  90 
 91  92  93  94  95  96  97  98  99  100 
Rolling the dice for Player4 (%): 1 
 1  2  3  4  5  6  7  8#*  9  10 
 11@%  12  13  14  15  16  17  18  19  20 
 21  22  23  24  25  26  27  28  29  30 
 31  32  33  34  35  36  37  38  39  40 
 41  42  43  44  45  46  47  48  49  50 
 51  52  53  54  55  56  57  58  59  60 
 61  62  63  64  65  66  67  68  69  70 
 71  72  73  74  75  76  77  78  79  80 
 81  82  83  84  85  86  87  88  89  90 
 91  92  93  94  95  96  97  98  99  100 
__________________________________________________
End of 3 round 
Rolling the dice for Player1 (@): 1 
 1  2  3  4  5  6  7  8#*  9  10 
 11%  12@  13  14  15  16  17  18  19  20 
 21  22  23  24  25  26  27  28  29  30 
 31  32  33  34  35  36  37  38  39  40 
 41  42  43  44  45  46  47  48  49  50 
 51  52  53  54  55  56  57  58  59  60 
 61  62  63  64  65  66  67  68  69  70 
 71  72  73  74  75  76  77  78  79  80 
 81  82  83  84  85  86  87  88  89  90 
 91  92  93  94  95  96  97  98  99  100 
Rolling the dice for Player2 (#): 5 
 1  2  3  4  5  6  7  8*  9  10 
 11%  12@  13#  14  15  16  17  18  19  20 
 21  22  23  24  25  26  27  28  29  30 
 31  32  33  34  35  36  37  38  39  40 
 41  42  43  44  45  46  47  48  49  50 
 51  52  53  54  55  56  57  58  59  60 
 61  62  63  64  65  66  67  68  69  70 
 71  72  73  74  75  76  77  78  79  80 
 81  82  83  84  85  86  87  88  89  90 
 91  92  93  94  95  96  97  98  99  100 
Rolling the dice for Player3 (*): 5 
 1  2  3  4  5  6  7  8  9  10 
 11%  12@  13#*  14  15  16  17  18  19  20 
 21  22  23  24  25  26  27  28  29  30 
 31  32  33  34  35  36  37  38  39  40 
 41  42  43  44  45  46  47  48  49  50 
 51  52  53  54  55  56  57  58  59  60 
 61  62  63  64  65  66  67  68  69  70 
 71  72  73  74  75  76  77  78  79  80 
 81  82  83  84  85  86  87  88  89  90 
 91  92  93  94  95  96  97  98  99  100 
Rolling the dice for Player4 (%): 2 
 1  2  3  4  5  6  7  8  9  10 
 11  12@  13#*%  14  15  16  17  18  19  20 
 21  22  23  24  25  26  27  28  29  30 
 31  32  33  34  35  36  37  38  39  40 
 41  42  43  44  45  46  47  48  49  50 
 51  52  53  54  55  56  57  58  59  60 
 61  62  63  64  65  66  67  68  69  70 
 71  72  73  74  75  76  77  78  79  80 
 81  82  83  84  85  86  87  88  89  90 
 91  92  93  94  95  96  97  98  99  100 
__________________________________________________
End of 4 round 
Rolling the dice for Player1 (@): 6 
 1  2  3  4  5  6  7  8  9  10 
 11  12  13#*%  14  15  16  17  18@  19  20 
 21  22  23  24  25  26  27  28  29  30 
 31  32  33  34  35  36  37  38  39  40 
 41  42  43  44  45  46  47  48  49  50 
 51  52  53  54  55  56  57  58  59  60 
 61  62  63  64  65  66  67  68  69  70 
 71  72  73  74  75  76  77  78  79  80 
 81  82  83  84  85  86  87  88  89  90 
 91  92  93  94  95  96  97  98  99  100 
Rolling the dice for Player2 (#): 2 
 1  2  3  4  5  6  7  8  9  10 
 11  12  13*%  14  15#  16  17  18@  19  20 
 21  22  23  24  25  26  27  28  29  30 
 31  32  33  34  35  36  37  38  39  40 
 41  42  43  44  45  46  47  48  49  50 
 51  52  53  54  55  56  57  58  59  60 
 61  62  63  64  65  66  67  68  69  70 
 71  72  73  74  75  76  77  78  79  80 
 81  82  83  84  85  86  87  88  89  90 
 91  92  93  94  95  96  97  98  99  100 
Rolling the dice for Player3 (*): 3 
Player3 is moving from 16 to 8 
 1  2  3  4  5  6  7  8*  9  10 
 11  12  13%  14  15#  16  17  18@  19  20 
 21  22  23  24  25  26  27  28  29  30 
 31  32  33  34  35  36  37  38  39  40 
 41  42  43  44  45  46  47  48  49  50 
 51  52  53  54  55  56  57  58  59  60 
 61  62  63  64  65  66  67  68  69  70 
 71  72  73  74  75  76  77  78  79  80 
 81  82  83  84  85  86  87  88  89  90 
 91  92  93  94  95  96  97  98  99  100 
Rolling the dice for Player4 (%): 3 
Player4 is moving from 16 to 8 
 1  2  3  4  5  6  7  8*%  9  10 
 11  12  13  14  15#  16  17  18@  19  20 
 21  22  23  24  25  26  27  28  29  30 
 31  32  33  34  35  36  37  38  39  40 
 41  42  43  44  45  46  47  48  49  50 
 51  52  53  54  55  56  57  58  59  60 
 61  62  63  64  65  66  67  68  69  70 
 71  72  73  74  75  76  77  78  79  80 
 81  82  83  84  85  86  87  88  89  90 
 91  92  93  94  95  96  97  98  99  100 
__________________________________________________
End of 5 round 
Rolling the dice for Player1 (@): 6 
 1  2  3  4  5  6  7  8*%  9  10 
 11  12  13  14  15#  16  17  18  19  20 
 21  22  23  24@  25  26  27  28  29  30 
 31  32  33  34  35  36  37  38  39  40 
 41  42  43  44  45  46  47  48  49  50 
 51  52  53  54  55  56  57  58  59  60 
 61  62  63  64  65  66  67  68  69  70 
 71  72  73  74  75  76  77  78  79  80 
 81  82  83  84  85  86  87  88  89  90 
 91  92  93  94  95  96  97  98  99  100 
Rolling the dice for Player2 (#): 1 
Player2 is moving from 16 to 8 
 1  2  3  4  5  6  7  8#*%  9  10 
 11  12  13  14  15  16  17  18  19  20 
 21  22  23  24@  25  26  27  28  29  30 
 31  32  33  34  35  36  37  38  39  40 
 41  42  43  44  45  46  47  48  49  50 
 51  52  53  54  55  56  57  58  59  60 
 61  62  63  64  65  66  67  68  69  70 
 71  72  73  74  75  76  77  78  79  80 
 81  82  83  84  85  86  87  88  89  90 
 91  92  93  94  95  96  97  98  99  100 
Rolling the dice for Player3 (*): 5 
 1  2  3  4  5  6  7  8#%  9  10 
 11  12  13*  14  15  16  17  18  19  20 
 21  22  23  24@  25  26  27  28  29  30 
 31  32  33  34  35  36  37  38  39  40 
 41  42  43  44  45  46  47  48  49  50 
 51  52  53  54  55  56  57  58  59  60 
 61  62  63  64  65  66  67  68  69  70 
 71  72  73  74  75  76  77  78  79  80 
 81  82  83  84  85  86  87  88  89  90 
 91  92  93  94  95  96  97  98  99  100 
Rolling the dice for Player4 (%): 6 
Player4 is moving from 14 to 77 
 1  2  3  4  5  6  7  8#  9  10 
 11  12  13*  14  15  16  17  18  19  20 
 21  22  23  24@  25  26  27  28  29  30 
 31  32  33  34  35  36  37  38  39  40 
 41  42  43  44  45  46  47  48  49  50 
 51  52  53  54  55  56  57  58  59  60 
 61  62  63  64  65  66  67  68  69  70 
 71  72  73  74  75  76  77%  78  79  80 
 81  82  83  84  85  86  87  88  89  90 
 91  92  93  94  95  96  97  98  99  100 
__________________________________________________
End of 6 round 
Rolling the dice for Player1 (@): 6 
 1  2  3  4  5  6  7  8#  9  10 
 11  12  13*  14  15  16  17  18  19  20 
 21  22  23  24  25  26  27  28  29  30@ 
 31  32  33  34  35  36  37  38  39  40 
 41  42  43  44  45  46  47  48  49  50 
 51  52  53  54  55  56  57  58  59  60 
 61  62  63  64  65  66  67  68  69  70 
 71  72  73  74  75  76  77%  78  79  80 
 81  82  83  84  85  86  87  88  89  90 
 91  92  93  94  95  96  97  98  99  100 
Rolling the dice for Player2 (#): 1 
Player2 is moving from 9 to 30 
 1  2  3  4  5  6  7  8  9  10 
 11  12  13*  14  15  16  17  18  19  20 
 21  22  23  24  25  26  27  28  29  30@# 
 31  32  33  34  35  36  37  38  39  40 
 41  42  43  44  45  46  47  48  49  50 
 51  52  53  54  55  56  57  58  59  60 
 61  62  63  64  65  66  67  68  69  70 
 71  72  73  74  75  76  77%  78  79  80 
 81  82  83  84  85  86  87  88  89  90 
 91  92  93  94  95  96  97  98  99  100 
Rolling the dice for Player3 (*): 1 
Player3 is moving from 14 to 77 
 1  2  3  4  5  6  7  8  9  10 
 11  12  13  14  15  16  17  18  19  20 
 21  22  23  24  25  26  27  28  29  30@# 
 31  32  33  34  35  36  37  38  39  40 
 41  42  43  44  45  46  47  48  49  50 
 51  52  53  54  55  56  57  58  59  60 
 61  62  63  64  65  66  67  68  69  70 
 71  72  73  74  75  76  77*%  78  79  80 
 81  82  83  84  85  86  87  88  89  90 
 91  92  93  94  95  96  97  98  99  100 
Rolling the dice for Player4 (%): 6 
 1  2  3  4  5  6  7  8  9  10 
 11  12  13  14  15  16  17  18  19  20 
 21  22  23  24  25  26  27  28  29  30@# 
 31  32  33  34  35  36  37  38  39  40 
 41  42  43  44  45  46  47  48  49  50 
 51  52  53  54  55  56  57  58  59  60 
 61  62  63  64  65  66  67  68  69  70 
 71  72  73  74  75  76  77*  78  79  80 
 81  82  83%  84  85  86  87  88  89  90 
 91  92  93  94  95  96  97  98  99  100 
__________________________________________________
End of 7 round 
Rolling the dice for Player1 (@): 3 
 1  2  3  4  5  6  7  8  9  10 
 11  12  13  14  15  16  17  18  19  20 
 21  22  23  24  25  26  27  28  29  30# 
 31  32  33@  34  35  36  37  38  39  40 
 41  42  43  44  45  46  47  48  49  50 
 51  52  53  54  55  56  57  58  59  60 
 61  62  63  64  65  66  67  68  69  70 
 71  72  73  74  75  76  77*  78  79  80 
 81  82  83%  84  85  86  87  88  89  90 
 91  92  93  94  95  96  97  98  99  100 
Rolling the dice for Player2 (#): 1 
 1  2  3  4  5  6  7  8  9  10 
 11  12  13  14  15  16  17  18  19  20 
 21  22  23  24  25  26  27  28  29  30 
 31#  32  33@  34  35  36  37  38  39  40 
 41  42  43  44  45  46  47  48  49  50 
 51  52  53  54  55  56  57  58  59  60 
 61  62  63  64  65  66  67  68  69  70 
 71  72  73  74  75  76  77*  78  79  80 
 81  82  83%  84  85  86  87  88  89  90 
 91  92  93  94  95  96  97  98  99  100 
Rolling the dice for Player3 (*): 6 
 1  2  3  4  5  6  7  8  9  10 
 11  12  13  14  15  16  17  18  19  20 
 21  22  23  24  25  26  27  28  29  30 
 31#  32  33@  34  35  36  37  38  39  40 
 41  42  43  44  45  46  47  48  49  50 
 51  52  53  54  55  56  57  58  59  60 
 61  62  63  64  65  66  67  68  69  70 
 71  72  73  74  75  76  77  78  79  80 
 81  82  83*%  84  85  86  87  88  89  90 
 91  92  93  94  95  96  97  98  99  100 
Rolling the dice for Player4 (%): 4 
 1  2  3  4  5  6  7  8  9  10 
 11  12  13  14  15  16  17  18  19  20 
 21  22  23  24  25  26  27  28  29  30 
 31#  32  33@  34  35  36  37  38  39  40 
 41  42  43  44  45  46  47  48  49  50 
 51  52  53  54  55  56  57  58  59  60 
 61  62  63  64  65  66  67  68  69  70 
 71  72  73  74  75  76  77  78  79  80 
 81  82  83*  84  85  86  87%  88  89  90 
 91  92  93  94  95  96  97  98  99  100 
__________________________________________________
End of 8 round 
Rolling the dice for Player1 (@): 5 
 1  2  3  4  5  6  7  8  9  10 
 11  12  13  14  15  16  17  18  19  20 
 21  22  23  24  25  26  27  28  29  30 
 31#  32  33  34  35  36  37  38@  39  40 
 41  42  43  44  45  46  47  48  49  50 
 51  52  53  54  55  56  57  58  59  60 
 61  62  63  64  65  66  67  68  69  70 
 71  72  73  74  75  76  77  78  79  80 
 81  82  83*  84  85  86  87%  88  89  90 
 91  92  93  94  95  96  97  98  99  100 
Rolling the dice for Player2 (#): 6 
Player2 is moving from 37 to 58 
 1  2  3  4  5  6  7  8  9  10 
 11  12  13  14  15  16  17  18  19  20 
 21  22  23  24  25  26  27  28  29  30 
 31  32  33  34  35  36  37  38@  39  40 
 41  42  43  44  45  46  47  48  49  50 
 51  52  53  54  55  56  57  58#  59  60 
 61  62  63  64  65  66  67  68  69  70 
 71  72  73  74  75  76  77  78  79  80 
 81  82  83*  84  85  86  87%  88  89  90 
 91  92  93  94  95  96  97  98  99  100 
Rolling the dice for Player3 (*): 3 
 1  2  3  4  5  6  7  8  9  10 
 11  12  13  14  15  16  17  18  19  20 
 21  22  23  24  25  26  27  28  29  30 
 31  32  33  34  35  36  37  38@  39  40 
 41  42  43  44  45  46  47  48  49  50 
 51  52  53  54  55  56  57  58#  59  60 
 61  62  63  64  65  66  67  68  69  70 
 71  72  73  74  75  76  77  78  79  80 
 81  82  83  84  85  86*  87%  88  89  90 
 91  92  93  94  95  96  97  98  99  100 
Rolling the dice for Player4 (%): 1 
 1  2  3  4  5  6  7  8  9  10 
 11  12  13  14  15  16  17  18  19  20 
 21  22  23  24  25  26  27  28  29  30 
 31  32  33  34  35  36  37  38@  39  40 
 41  42  43  44  45  46  47  48  49  50 
 51  52  53  54  55  56  57  58#  59  60 
 61  62  63  64  65  66  67  68  69  70 
 71  72  73  74  75  76  77  78  79  80 
 81  82  83  84  85  86*  87  88%  89  90 
 91  92  93  94  95  96  97  98  99  100 
__________________________________________________
End of 9 round 
Rolling the dice for Player1 (@): 1 
 1  2  3  4  5  6  7  8  9  10 
 11  12  13  14  15  16  17  18  19  20 
 21  22  23  24  25  26  27  28  29  30 
 31  32  33  34  35  36  37  38  39@  40 
 41  42  43  44  45  46  47  48  49  50 
 51  52  53  54  55  56  57  58#  59  60 
 61  62  63  64  65  66  67  68  69  70 
 71  72  73  74  75  76  77  78  79  80 
 81  82  83  84  85  86*  87  88%  89  90 
 91  92  93  94  95  96  97  98  99  100 
Rolling the dice for Player2 (#): 5 
 1  2  3  4  5  6  7  8  9  10 
 11  12  13  14  15  16  17  18  19  20 
 21  22  23  24  25  26  27  28  29  30 
 31  32  33  34  35  36  37  38  39@  40 
 41  42  43  44  45  46  47  48  49  50 
 51  52  53  54  55  56  57  58  59  60 
 61  62  63#  64  65  66  67  68  69  70 
 71  72  73  74  75  76  77  78  79  80 
 81  82  83  84  85  86*  87  88%  89  90 
 91  92  93  94  95  96  97  98  99  100 
Rolling the dice for Player3 (*): 2 
 1  2  3  4  5  6  7  8  9  10 
 11  12  13  14  15  16  17  18  19  20 
 21  22  23  24  25  26  27  28  29  30 
 31  32  33  34  35  36  37  38  39@  40 
 41  42  43  44  45  46  47  48  49  50 
 51  52  53  54  55  56  57  58  59  60 
 61  62  63#  64  65  66  67  68  69  70 
 71  72  73  74  75  76  77  78  79  80 
 81  82  83  84  85  86  87  88*%  89  90 
 91  92  93  94  95  96  97  98  99  100 
Rolling the dice for Player4 (%): 4 
 1  2  3  4  5  6  7  8  9  10 
 11  12  13  14  15  16  17  18  19  20 
 21  22  23  24  25  26  27  28  29  30 
 31  32  33  34  35  36  37  38  39@  40 
 41  42  43  44  45  46  47  48  49  50 
 51  52  53  54  55  56  57  58  59  60 
 61  62  63#  64  65  66  67  68  69  70 
 71  72  73  74  75  76  77  78  79  80 
 81  82  83  84  85  86  87  88*  89  90 
 91  92%  93  94  95  96  97  98  99  100 
__________________________________________________
End of 10 round 
Rolling the dice for Player1 (@): 2 
 1  2  3  4  5  6  7  8  9  10 
 11  12  13  14  15  16  17  18  19  20 
 21  22  23  24  25  26  27  28  29  30 
 31  32  33  34  35  36  37  38  39  40 
 41@  42  43  44  45  46  47  48  49  50 
 51  52  53  54  55  56  57  58  59  60 
 61  62  63#  64  65  66  67  68  69  70 
 71  72  73  74  75  76  77  78  79  80 
 81  82  83  84  85  86  87  88*  89  90 
 91  92%  93  94  95  96  97  98  99  100 
Rolling the dice for Player2 (#): 5 
 1  2  3  4  5  6  7  8  9  10 
 11  12  13  14  15  16  17  18  19  20 
 21  22  23  24  25  26  27  28  29  30 
 31  32  33  34  35  36  37  38  39  40 
 41@  42  43  44  45  46  47  48  49  50 
 51  52  53  54  55  56  57  58  59  60 
 61  62  63  64  65  66  67  68#  69  70 
 71  72  73  74  75  76  77  78  79  80 
 81  82  83  84  85  86  87  88*  89  90 
 91  92%  93  94  95  96  97  98  99  100 
Rolling the dice for Player3 (*): 1 
 1  2  3  4  5  6  7  8  9  10 
 11  12  13  14  15  16  17  18  19  20 
 21  22  23  24  25  26  27  28  29  30 
 31  32  33  34  35  36  37  38  39  40 
 41@  42  43  44  45  46  47  48  49  50 
 51  52  53  54  55  56  57  58  59  60 
 61  62  63  64  65  66  67  68#  69  70 
 71  72  73  74  75  76  77  78  79  80 
 81  82  83  84  85  86  87  88  89*  90 
 91  92%  93  94  95  96  97  98  99  100 
Rolling the dice for Player4 (%): 6 
 1  2  3  4  5  6  7  8  9  10 
 11  12  13  14  15  16  17  18  19  20 
 21  22  23  24  25  26  27  28  29  30 
 31  32  33  34  35  36  37  38  39  40 
 41@  42  43  44  45  46  47  48  49  50 
 51  52  53  54  55  56  57  58  59  60 
 61  62  63  64  65  66  67  68#  69  70 
 71  72  73  74  75  76  77  78  79  80 
 81  82  83  84  85  86  87  88  89*  90 
 91  92  93  94  95  96  97  98%  99  100 
__________________________________________________
End of 11 round 
Rolling the dice for Player1 (@): 1 
 1  2  3  4  5  6  7  8  9  10 
 11  12  13  14  15  16  17  18  19  20 
 21  22  23  24  25  26  27  28  29  30 
 31  32  33  34  35  36  37  38  39  40 
 41  42@  43  44  45  46  47  48  49  50 
 51  52  53  54  55  56  57  58  59  60 
 61  62  63  64  65  66  67  68#  69  70 
 71  72  73  74  75  76  77  78  79  80 
 81  82  83  84  85  86  87  88  89*  90 
 91  92  93  94  95  96  97  98%  99  100 
Rolling the dice for Player2 (#): 1 
 1  2  3  4  5  6  7  8  9  10 
 11  12  13  14  15  16  17  18  19  20 
 21  22  23  24  25  26  27  28  29  30 
 31  32  33  34  35  36  37  38  39  40 
 41  42@  43  44  45  46  47  48  49  50 
 51  52  53  54  55  56  57  58  59  60 
 61  62  63  64  65  66  67  68  69#  70 
 71  72  73  74  75  76  77  78  79  80 
 81  82  83  84  85  86  87  88  89*  90 
 91  92  93  94  95  96  97  98%  99  100 
Rolling the dice for Player3 (*): 4 
 1  2  3  4  5  6  7  8  9  10 
 11  12  13  14  15  16  17  18  19  20 
 21  22  23  24  25  26  27  28  29  30 
 31  32  33  34  35  36  37  38  39  40 
 41  42@  43  44  45  46  47  48  49  50 
 51  52  53  54  55  56  57  58  59  60 
 61  62  63  64  65  66  67  68  69#  70 
 71  72  73  74  75  76  77  78  79  80 
 81  82  83  84  85  86  87  88  89  90 
 91  92  93*  94  95  96  97  98%  99  100 
Rolling the dice for Player4 (%): 5 
CONGRATULATION: Player4 (%) - THE WINNER!!!