<?php
echo "у анона выпало {$anonDice1} и {$anonDice1}.\nУ компа выпало{$pcDice1} и {$pcDice2}.\n";
$anonSum = $anonDice1 + $anonDice2;
$pcSum = $pcDice1 + $pcDice2;
if (($anonDice1 == $anonDice2) && ($pcDice1 == $pcDice2)) {
echo "2 дабла\n";
} elseif ($anonSum > $pcSum) {
echo "Анон выиграл!\n";
} elseif ($anonSum < $pcSum) {
echo "Комп выиграл!\n";
} else {
echo "Ничья.\n";
};
?>
PD9waHAKCmVycm9yX3JlcG9ydGluZygtMSk7CgokYW5vbkRpY2UxID0gbXRfcmFuZCgxLDYpOwokYW5vbkRpY2UyID0gbXRfcmFuZCgxLDYpOwoKJHBjRGljZTEgPSBtdF9yYW5kKDEsNik7CiRwY0RpY2UyID0gbXRfcmFuZCgxLDYpOwoKZWNobyAi0YMg0LDQvdC+0L3QsCDQstGL0L/QsNC70L4geyRhbm9uRGljZTF9INC4IHskYW5vbkRpY2UxfS5cbtCjINC60L7QvNC/0LAg0LLRi9C/0LDQu9C+eyRwY0RpY2UxfSDQuCB7JHBjRGljZTJ9LlxuIjsKCiRhbm9uU3VtID0gJGFub25EaWNlMSArICRhbm9uRGljZTI7CiRwY1N1bSA9ICRwY0RpY2UxICsgJHBjRGljZTI7CgppZiAoKCRhbm9uRGljZTEgPT0gJGFub25EaWNlMikgJiYgKCRwY0RpY2UxID09ICRwY0RpY2UyKSkgewogICAgZWNobyAiMiDQtNCw0LHQu9CwXG4iOwp9IGVsc2VpZiAoJGFub25TdW0gPiAkcGNTdW0pIHsKICAgIGVjaG8gItCQ0L3QvtC9INCy0YvQuNCz0YDQsNC7IVxuIjsKfSBlbHNlaWYgKCRhbm9uU3VtIDwgJHBjU3VtKSB7CiAgICBlY2hvICLQmtC+0LzQvyDQstGL0LjQs9GA0LDQuyFcbiI7Cn0gZWxzZSB7IAogICAgZWNobyAi0J3QuNGH0YzRjy5cbiI7Cn07Cj8+