<?php
echo "У анона выпало: $anonDice1 и $anonDice2\nУ компьютера выпало: $compDice1 и $compDice2\n";
$anonSum = $anonDice1 + $anonDice2;
$compSum = $compDice1 + $compDice2;
if(($anonDice1 == $anonDice2) && ($compDice1 == $compDice2)){
echo "2 дабла - тебя ждет большая удача! Запости скриншот!!\n";
}
if($anonSum > $compSum)
echo "Победил анон!\n";
elseif($anonSum < $compSum)
echo "Победил компьютер!\n";
else
echo "Победила дружба!\n";
PD9waHAKZXJyb3JfcmVwb3J0aW5nKC0xKTsKCiRhbm9uRGljZTEgPSBtdF9yYW5kKDEsIDYpOwokYW5vbkRpY2UyID0gbXRfcmFuZCgxLCA2KTsKCiRjb21wRGljZTEgPSBtdF9yYW5kKDEsIDYpOwokY29tcERpY2UyID0gbXRfcmFuZCgxLCA2KTsKCmVjaG8gItCjINCw0L3QvtC90LAg0LLRi9C/0LDQu9C+OiAkYW5vbkRpY2UxINC4ICRhbm9uRGljZTJcbtCjINC60L7QvNC/0YzRjtGC0LXRgNCwINCy0YvQv9Cw0LvQvjogJGNvbXBEaWNlMSDQuCAkY29tcERpY2UyXG4iOwoKJGFub25TdW0gPSAkYW5vbkRpY2UxICsgJGFub25EaWNlMjsKJGNvbXBTdW0gPSAkY29tcERpY2UxICsgJGNvbXBEaWNlMjsKCmlmKCgkYW5vbkRpY2UxID09ICRhbm9uRGljZTIpICYmICgkY29tcERpY2UxID09ICRjb21wRGljZTIpKXsKCWVjaG8gIjIg0LTQsNCx0LvQsCAtINGC0LXQsdGPINC20LTQtdGCINCx0L7Qu9GM0YjQsNGPINGD0LTQsNGH0LAhINCX0LDQv9C+0YHRgtC4INGB0LrRgNC40L3RiNC+0YIhIVxuIjsKCWV4aXQoKTsKfQppZigkYW5vblN1bSA+ICRjb21wU3VtKQoJZWNobyAi0J/QvtCx0LXQtNC40Lsg0LDQvdC+0L0hXG4iOwplbHNlaWYoJGFub25TdW0gPCAkY29tcFN1bSkKCWVjaG8gItCf0L7QsdC10LTQuNC7INC60L7QvNC/0YzRjtGC0LXRgCFcbiI7CmVsc2UKCWVjaG8gItCf0L7QsdC10LTQuNC70LAg0LTRgNGD0LbQsdCwIVxuIjs=