<?php ?> <?php class Player { public $name; public $icon; public $isWinner; public $position; public function __construct($name, $icon) { $this->name = $name; $this->icon = $icon; $this->position = 1; } public function getRoll() { return $roll; } public function getMove() { global $desk; $round = 1; $lastPosition = $this->position; $roll = $this->getRoll(); $this->position += $roll; echo "Rolling the dice for $this->name ($this->icon): $roll \n"; foreach ($desk->cases as $key => $value) { if ($this->position == $key) { echo "$this->name is moving from $this->position to "; $this->position = $value; echo "$this->position \n"; } } if (100 - $lastPosition < $roll) { $this->position = 100; } if ($this->position == 100) { echo "CONGRATULATION: $this->name ($this->icon) - THE WINNER!!! \n"; $this->isWinner = 1; return $this->isWinner; } } } class Desk { public $cases; public function __construct() { 4 => 42, 16 => 8, 9 => 30, 32 => 12, 14 => 77, 62 => 19, 80 => 98, 96 => 76, 71 => 67, 48 => 73, 37 => 58, 47 => 26, 70 => 89 ); } public function createDesk() { $k = 1; for ($i = 0; $i <= 99; $i++) { $zone[] = $k++; } return $zone; } } $desk = new Desk; $player1 = new Player('Player1', '@'); $player2 = new Player('Player2', '#'); $player3 = new Player('Player3', '*'); $player4 = new Player('Player4', '%'); $player1, $player2, $player3, $player4 ); $round = 1; function padRight($string) { if ($count <= 0) { return $string; } return $space . $string . $space; } function getShow($players, $desk) { $zone = $desk->createDesk(); foreach ($zone as &$square) { foreach ($players as $player) { if ($square == $player->position) { $square .= $player->icon; } } } $text = ''; $k = 1; foreach ($zone as $position) { echo " $position "; { echo "\n"; } $k++; } } function getGame($array, $desk) { global $round; global $players; do { foreach ($array as $player) { $player->getMove(); if ($player->isWinner == 1) { return $player->name; } echo getShow($players, $desk); } echo "End of $round round \n"; $round++; } while ($player->isWinner == 0); } getGame($players, $desk);
Standard input is empty
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!!!