<?php
echo "У анона выпало {$anonDice1} и {$anonDice2}\nУ компьютера выпало {$compDice1} и {$compDice2}\n";
$anonSum = ($anonDice1 + $anonDice2);
$compSum = ($compDice1 + $compDice2);
if (($anonDice1 == $anonDice2) && ($compDice1 == $compDice2)) {
echo "2 дабла - невероятная удача.";
if ($anonSum > $compSum) {
echo "Анон победил !";
} elseif ($anonSum < $compSum) {
echo "Компьютер Победил!";
} elseif ($anonSum == $compSum) {
echo "Ничья :(";
} else {
PD9waHAKCmVycm9yX3JlcG9ydGluZyAoLTEpOwoKJGFub25EaWNlMSA9IG10X3JhbmQoMSw2KTsKJGNvbXBEaWNlMSA9IG10X3JhbmQoMSw2KTsKJGFub25EaWNlMiA9IG10X3JhbmQoMSw2KTsKJGNvbXBEaWNlMiA9IG10X3JhbmQoMSw2KTsKCmVjaG8gItCjINCw0L3QvtC90LAg0LLRi9C/0LDQu9C+IHskYW5vbkRpY2UxfSDQuCB7JGFub25EaWNlMn1cbtCjINC60L7QvNC/0YzRjtGC0LXRgNCwINCy0YvQv9Cw0LvQviB7JGNvbXBEaWNlMX0g0LggeyRjb21wRGljZTJ9XG4iOwoKJGFub25TdW0gPSAoJGFub25EaWNlMSArICRhbm9uRGljZTIpOwokY29tcFN1bSA9ICgkY29tcERpY2UxICsgJGNvbXBEaWNlMik7CgppZiAoKCRhbm9uRGljZTEgPT0gJGFub25EaWNlMikgJiYgKCRjb21wRGljZTEgPT0gJGNvbXBEaWNlMikpIHsgICAgCgllY2hvICIyINC00LDQsdC70LAgLSDQvdC10LLQtdGA0L7Rj9GC0L3QsNGPINGD0LTQsNGH0LAuIjsKCWV4aXQgKCk7IH0KICAgIGlmICgkYW5vblN1bSA+ICRjb21wU3VtKSB7CgllY2hvICLQkNC90L7QvSDQv9C+0LHQtdC00LjQuyAhIjsKICAgIH0gZWxzZWlmICgkYW5vblN1bSA8ICRjb21wU3VtKSB7CgllY2hvICLQmtC+0LzQv9GM0Y7RgtC10YAg0J/QvtCx0LXQtNC40LshIjsKCX0gZWxzZWlmICgkYW5vblN1bSA9PSAkY29tcFN1bSkgewoJZWNobyAi0J3QuNGH0YzRjyA6KCI7Cgl9IGVsc2UgewoJCWV4aXQoKTt9