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

 Rolling the dice for Player1 (@): 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 Player2 (#): 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 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 (%): 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 1 round 

Positions after 1: 
Player1 (@) position is: 5 
Player2 (#) position is: 5 
Player3 (*) position is: 2 
Player4 (%) position is: 5 


 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 (#): 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 
Player3 is moving from 4 to 42 
 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 
Player4 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 
__________________________________________________
End of 2 round 

Positions after 2: 
Player1 (@) position is: 6 
Player2 (#) position is: 11 
Player3 (*) position is: 42 
Player4 (%) position is: 30 


 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 (#): 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 (*): 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 (%): 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 3 round 

Positions after 3: 
Player1 (@) position is: 11 
Player2 (#) position is: 13 
Player3 (*) position is: 46 
Player4 (%) position is: 36 


 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 (#): 3 
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 (%): 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 4 round 

Positions after 4: 
Player1 (@) position is: 13 
Player2 (#) position is: 8 
Player3 (*) position is: 51 
Player4 (%) position is: 41 


 Rolling the dice for Player1 (@): 1 
Player1 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 Player2 (#): 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 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 (%): 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 5 round 

Positions after 5: 
Player1 (@) position is: 77 
Player2 (#) position is: 12 
Player3 (*) position is: 55 
Player4 (%) position is: 42 


 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 (#): 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 (*): 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 6 round 

Positions after 6: 
Player1 (@) position is: 79 
Player2 (#) position is: 8 
Player3 (*) position is: 57 
Player4 (%) position is: 46 


 Rolling the dice for Player1 (@): 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 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 (*): 5 
Player3 is moving from 62 to 19 
 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 7 round 

Positions after 7: 
Player1 (@) position is: 83 
Player2 (#) position is: 30 
Player3 (*) position is: 19 
Player4 (%) position is: 50 


 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 (#): 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 (%): 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 8 round 

Positions after 8: 
Player1 (@) position is: 88 
Player2 (#) position is: 35 
Player3 (*) position is: 20 
Player4 (%) position is: 52 


 Rolling the dice for Player1 (@): 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 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 (*): 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 (%): 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 9 round 

Positions after 9: 
Player1 (@) position is: 92 
Player2 (#) position is: 40 
Player3 (*) position is: 26 
Player4 (%) position is: 54 


 Rolling the dice for Player1 (@): 4 
Player1 is moving from 96 to 76 
 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 (*): 6 
Player3 is moving from 32 to 12 
 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 10 round 

Positions after 10: 
Player1 (@) position is: 76 
Player2 (#) position is: 42 
Player3 (*) position is: 12 
Player4 (%) position is: 59 


 Rolling the dice for Player1 (@): 4 
Player1 is moving from 80 to 98 
 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 (#): 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 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 (%): 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 11 round 

Positions after 11: 
Player1 (@) position is: 98 
Player2 (#) position is: 45 
Player3 (*) position is: 18 
Player4 (%) position is: 60 


 Rolling the dice for Player1 (@): 3 
CONGRATULATION: Player1 (@) - THE WINNER!!!