<?php
$aSum = ($anonDice1 + $anonDice2);
$cSum = ($compDice1 + $compDice2);
echo "У анона выпало {$anonDice1} и {$anonDice2}\nУ компьютера выпало {$compDice1} и {$compDice2}\n";
if (($anonDice1 == $anondice2) && ($compDice1 == $compDice2)) {
echo "Два дабла!";
} elseif ($aSum == $cSum) {
echo "Ничья!";
} elseif ($aSum > $cSum) {
echo "Проиграл";
} elseif ($aSum < $cSum) {
echo "Выиграл!";
}
?>
PD9waHAKCmVycm9yX3JlcG9ydGluZygtMSk7CgokYW5vbkRpY2UxID0gbXRfcmFuZCgxLCA2KTsKJGFub25EaWNlMiA9IG10X3JhbmQoMSwgNik7CgokY29tcERpY2UxID0gbXRfcmFuZCgxLCA2KTsKJGNvbXBEaWNlMiA9IG10X3JhbmQoMSwgNik7CgokYVN1bSA9ICgkYW5vbkRpY2UxICsgJGFub25EaWNlMik7CiRjU3VtID0gKCRjb21wRGljZTEgKyAkY29tcERpY2UyKTsKCmVjaG8gItCjINCw0L3QvtC90LAg0LLRi9C/0LDQu9C+IHskYW5vbkRpY2UxfSDQuCB7JGFub25EaWNlMn1cbtCjINC60L7QvNC/0YzRjtGC0LXRgNCwINCy0YvQv9Cw0LvQviB7JGNvbXBEaWNlMX0g0LggeyRjb21wRGljZTJ9XG4iOwoKaWYgKCgkYW5vbkRpY2UxID09ICRhbm9uZGljZTIpICYmICgkY29tcERpY2UxID09ICRjb21wRGljZTIpKSB7CgllY2hvICLQlNCy0LAg0LTQsNCx0LvQsCEiOwoJZXhpdCgpOwp9IGVsc2VpZiAoJGFTdW0gPT0gJGNTdW0pIHsKCWVjaG8gItCd0LjRh9GM0Y8hIjsKfSBlbHNlaWYgKCRhU3VtID4gJGNTdW0pIHsKCWVjaG8gItCf0YDQvtC40LPRgNCw0LsiOwp9IGVsc2VpZiAoJGFTdW0gPCAkY1N1bSkgewoJZWNobyAi0JLRi9C40LPRgNCw0LshIjsKfQo/Pg==