fork download
<?php
header("Content-Type: text/plain; charset=utf-8");
?>

<?php
mb_internal_encoding("UTF-8");
class Player
{
    public $name;
    public $icon;
    public $x;
    public $y;
    public $isWinner;
    public $position;
    public function __construct($name, $icon)
    {
        $this->name     = $name;
        $this->icon     = $icon;
        $this->x        = 1;
        $this->y        = 0;
        $this->position = 1;
    }
    public function getMove()
    {
        $round          = 1;
        $roll           = mt_rand(1, 6);
        $lastX          = $this->x;
        $lastY          = $this->y;
        $this->x        = $this->x + $roll;
        $position       = $this->y * 10 + $this->x;
        $this->position = $position;
        echo "Rolling the dice for $this->name ($this->icon): $roll \n";
        if ($position < 100) {
            
            $length = 10 - $lastX;
            
            if ($length < $roll) {
                $roll    = $roll - $length;
                $this->x = $roll;
                $this->y = $this->y + 1;
            }
            if (100 - $position < $roll) {
                $position       = 100;
                $this->position = $position;
            }
            switch ($position) {
                case 4:
                    echo "Congratulation: $this->name ($this->icon) is moving from $this->y$this->x ";
                    $this->x        = 2;
                    $this->y        = 4;
                    $this->position = 42;
                    echo "to new position  $this->y$this->x \n";
                    break;
                case 16:
                    echo "Sorry but $this->name ($this->icon) is moving from $this->y$this->x ";
                    $this->x = 8;
                    $this->y = 0;
                    echo "to new position is $this->y$this->x \n";
                    $this->position = 8;
                    break;
                case 9:
                    echo "Congratulation: $this->name ($this->icon) is moving from $this->y$this->x ";
                    $this->x        = 10;
                    $this->y        = 3;
                    $this->position = 30;
                    echo "to new position  $this->position \n";
                    break;
                case 32:
                    echo "Sorry but $this->name ($this->icon) is moving from $this->y$this->x ";
                    $this->x        = 2;
                    $this->y        = 1;
                    $this->position = 12;
                    echo "to new position  $this->y$this->x \n";
                    break;
                case 14:
                    echo "Congratulation: $this->name ($this->icon) is moving from $this->y$this->x ";
                    $this->x        = 7;
                    $this->y        = 7;
                    $this->position = 77;
                    echo "to new position  $this->y$this->x \n";
                    break;
                case 62:
                    echo "Sorry but $this->name ($this->icon) is moving from $this->y$this->x ";
                    $this->x        = 9;
                    $this->y        = 1;
                    $this->position = 19;
                    echo "to new position  $this->y$this->x \n";
                    break;
                case 80:
                    echo "Congratulation: $this->name ($this->icon) is moving from $this->y$this->x ";
                    $this->x        = 8;
                    $this->y        = 9;
                    $this->position = 98;
                    echo "to new position  $this->y$this->x \n";
                    break;
                case 96:
                    echo "Sorry but $this->name ($this->icon) is moving from $this->y$this->x ";
                    $this->x        = 6;
                    $this->y        = 7;
                    $this->position = 76;
                    echo "to new position  $this->y$this->x \n";
                    break;
                case 71:
                    echo "Sorry but $this->name ($this->icon) is moving from $this->y$this->x ";
                    $this->x        = 7;
                    $this->y        = 6;
                    $this->position = 67;
                    echo "to new position  $this->y$this->x \n";
                    break;
                case 48:
                    echo "Congratulation: $this->name ($this->icon) is moving from $this->y$this->x ";
                    $this->x        = 3;
                    $this->y        = 7;
                    $this->position = 73;
                    echo "to new position  $this->y$this->x \n";
                    break;
                case 37:
                    echo "Congratulation: $this->name ($this->icon) is moving from $this->y$this->x ";
                    $this->x        = 8;
                    $this->y        = 5;
                    $this->position = 58;
                    echo "to new position  $this->y$this->x \n";
                    break;
                case 47:
                    echo "Sorry but $this->name ($this->icon) is moving from $this->y$this->x ";
                    $this->x        = 6;
                    $this->y        = 2;
                    $this->position = 26;
                    echo "to new position  $this->y$this->x \n";
                    break;
                case 70:
                    echo "Congratulation: $this->name ($this->icon) is moving from $this->y$this->x ";
                    $this->x        = 9;
                    $this->y        = 8;
                    $this->position = 89;
                    echo "to new position  $this->y$this->x \n";
                    break;
                default:
                    echo "$this->name new position is $position \n";
            }
        } else {
            echo "CONGRATULATION: $this->name ($this->icon) - THE WINNER!!! \n";
            $this->position = 100;
            $this->x        = 10;
            $this->y        = 9;
            $this->isWinner = 1;
            return $this->isWinner;
        }
        
    }
    
}
$player1 = new Player('Player1', '@');
$player2 = new Player('Player2', '#');
$player3 = new Player('Player3', '*');
$player4 = new Player('Player4', '%');

$players = array(
    $player1,
    $player2,
    $player3,
    $player4
);
$round   = 1;
function padRight($string)
{
    $count = 50 - mb_strlen($string);
    if ($count <= 0) {
        return $string;
    }
    $space = str_repeat(' ', $count / 2);
    return $space . $string . $space;
}
function getShow($players)
{
    $zone = array();
    $k    = 1;
    for ($i = 0; $i <= 9; $i++) {
        for ($j = 1; $j <= 10; $j++) {
            $zone[$i][$j] = $k++;
        }
    }
    
    foreach ($players as $player) {
        $zone[$player->y][$player->x] .= $player->icon;
    }
    
    $text = '';
    foreach ($zone as $line) {
    	$string = '';
        foreach ($line as $position) {
            $string .= " $position ";
        }
        $text .= padRight($string) . "\n";        
    }
    return $text;
}


function getGame($array)
{
    global $round;
    global $players;
    do {
        foreach ($array as $player) {
            
            $player->getMove();
            
            if ($player->isWinner == 1) {
                return $player->name;
            }
            echo getShow($players);
        }
        
        echo str_repeat('_', 50) . "\n";
        echo "End of $round round \n\n";
        $round++;
    } while ($player->isWinner == 0);
    
}
getGame($players);


echo getShow($players);
Success #stdin #stdout 0.02s 20568KB
stdin
Standard input is empty
stdout
Rolling the dice for Player1 (@): 2 
Player1 new position is 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 (#): 3 
Congratulation: Player2 (#) is moving from 04 to new position  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 Player3 (*): 4 
Player3 new position is 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 
Player4 new position is 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     
__________________________________________________
End of 1 round 

Rolling the dice for Player1 (@): 1 
Congratulation: Player1 (@) is moving from 04 to new position  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 Player2 (#): 2 
Player2 new position is 44 
         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 new position is 10 
         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 
Player4 new position is 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 2 round 

Rolling the dice for Player1 (@): 5 
Sorry but Player1 (@) is moving from 47 to new position  26 
         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 
Congratulation: Player2 (#) is moving from 48 to new position  73 
         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 new position is 15 
          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 new position is 11 
          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 
Player1 new position is 27 
          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 new position is 79 
          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 new position is 21 
          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 
Player4 new position is 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     
__________________________________________________
End of 4 round 

Rolling the dice for Player1 (@): 6 
Player1 new position is 33 
          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 new position is 82 
          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 
Player3 new position is 25 
          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 
Sorry but Player4 (%) is moving from 16 to new position is 08 
          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 (@): 1 
Player1 new position is 34 
          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 new position is 88 
          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 
Player3 new position is 29 
          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 
Congratulation: Player4 (%) is moving from 14 to new position  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 (@): 4 
Player1 new position is 38 
          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 new position is 91 
          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 new position is 31 
          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 
Congratulation: Player4 (%) is moving from 710 to new position  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    
__________________________________________________
End of 7 round 

Rolling the dice for Player1 (@): 6 
Player1 new position is 44 
          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 
Player2 new position is 93 
          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 new position is 36 
          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 
Player4 new position is 99 
          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 (@): 4 
Congratulation: Player1 (@) is moving from 48 to new position  73 
          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 
Player2 new position is 100 
          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 new position is 41 
          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 
CONGRATULATION: Player4 (%) - THE WINNER!!! 
          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%