Пример #1
0
        echo "You rolled THREE!<br />";
    }
    if ($Score == 5) {
        echo "You rolled FIVE!<br />";
    }
    if ($Score == 7) {
        echo "You rolled SEVEN!<br />";
    }
    if ($Score == 9) {
        echo "You rolled NINE!<br />";
    }
    if ($Score == 11) {
        echo "You rolled ELEVENTH!<br />";
    }
    if ($Score == 12) {
        echo "You rolled TWELVE!<br />";
    }
}
$Dice = array();
$Dice[0] = rand(1, 6);
$Dice[1] = rand(1, 6);
$Score = $Dice[0] + $Dice[1];
echo "<p>";
echo "The total score for the roll was {$Score}.<br />";
CheckForDoubles($Dice[0], $Dice[1]);
DisplayScoreText($Score);
echo "</p>";
?>
    </body>
</html>
    } else {
        if ($Score == 3) {
            echo "You rolled THREE!<br />";
        }
        if ($Score == 5) {
            echo "You rolled FIVE!<br />";
        }
        if ($Score == 7) {
            echo "You rolled SEVEN!<br />";
        }
        if ($Score == 9) {
            echo "You rolled NINE!<br />";
        }
        if ($Score == 11) {
            echo "You rolled ELEVENTH!<br />";
        }
    }
}
$Dice = array();
$Dice[0] = rand(1, 6);
$Dice[1] = rand(1, 6);
$Score = $Dice[0] + $Dice[1];
echo "<p>";
echo "The total score for the roll was {$Score}.<br />";
$Double = CheckForDoubles($Dice[0], $Dice[1]);
DisplayScoreText($Score, $Double);
echo "</p>";
?>
    </body>
</html>