<?php
echo "У анона выпало $anonDice1 и $anonDice2 \n";
echo "У компьютера $compDice1 и $compDice2 \n";
$anonSum = $anonDice1 + $anonDice2;
$compSum = $compDice1 + $compDice2;
if ($anonDice1 == $anonDice2 && $compDice1 == $compDice2) {
echo "Два дабла.";
}
if ($anonSum > $compSum) {
echo "Анон победил";
} elseif ($anonSum < $compSum) {
echo "Комп победил)0))";
} else {
echo "Ничья";
}
?>
PD9waHAKIAplcnJvcl9yZXBvcnRpbmcoLTEpOwogCiRhbm9uRGljZTEgPSBtdF9yYW5kKDEsIDYpOwokYW5vbkRpY2UyID0gbXRfcmFuZCgxLCA2KTsKCiRjb21wRGljZTEgPSBtdF9yYW5kKDEsIDYpOwokY29tcERpY2UyID0gbXRfcmFuZCgxLCA2KTsKCmVjaG8gItCjINCw0L3QvtC90LAg0LLRi9C/0LDQu9C+ICRhbm9uRGljZTEg0LggJGFub25EaWNlMiBcbiI7CmVjaG8gItCjINC60L7QvNC/0YzRjtGC0LXRgNCwICRjb21wRGljZTEg0LggJGNvbXBEaWNlMiBcbiI7CgokYW5vblN1bSA9ICRhbm9uRGljZTEgKyAkYW5vbkRpY2UyOwokY29tcFN1bSA9ICRjb21wRGljZTEgKyAkY29tcERpY2UyOwoKaWYgKCRhbm9uRGljZTEgPT0gJGFub25EaWNlMiAmJiAkY29tcERpY2UxID09ICRjb21wRGljZTIpIHsKCWVjaG8gItCU0LLQsCDQtNCw0LHQu9CwLiI7CglleGl0KCk7Cn0KCmlmICgkYW5vblN1bSA+ICRjb21wU3VtKSB7CgllY2hvICLQkNC90L7QvSDQv9C+0LHQtdC00LjQuyI7Cn0gZWxzZWlmICgkYW5vblN1bSA8ICRjb21wU3VtKSB7CgllY2hvICLQmtC+0LzQvyDQv9C+0LHQtdC00LjQuykwKSkiOwp9IGVsc2UgIHsKCWVjaG8gItCd0LjRh9GM0Y8iOwp9Cgo/Pg==