<?php
echo "У анона выпало $anonDice1 и $anonDice2, у компьютера выпало $compDice1 и $compDice2.\n";
$anonPoints = $anonDice1 + $anonDice2;
$compPoints = $compDice1 + $compDice2;
if (($anonDice1 == $anonDice2)&&($compDice1 == $compDice2)) {
echo "Два дабла - большая удача.\n";
} elseif ($anonPoints > $compPoints) {
echo "Анон выиграл.\n";
} elseif ($compPoints > $anonPoints) {
echo "Комп победил.\n";
} else {
echo "Победила дружба\n";
}
?>
PD9waHAKCmVycm9yX3JlcG9ydGluZygtMSk7CgokYW5vbkRpY2UxID0gbXRfcmFuZCgxLDYpOwokYW5vbkRpY2UyID0gbXRfcmFuZCgxLDYpOwoKJGNvbXBEaWNlMSA9IG10X3JhbmQoMSw2KTsKJGNvbXBEaWNlMiA9IG10X3JhbmQoMSw2KTsKCmVjaG8gItCjINCw0L3QvtC90LAg0LLRi9C/0LDQu9C+ICRhbm9uRGljZTEg0LggJGFub25EaWNlMiwg0YMg0LrQvtC80L/RjNGO0YLQtdGA0LAg0LLRi9C/0LDQu9C+ICRjb21wRGljZTEg0LggJGNvbXBEaWNlMi5cbiI7CgokYW5vblBvaW50cyA9ICRhbm9uRGljZTEgKyAkYW5vbkRpY2UyOwokY29tcFBvaW50cyA9ICRjb21wRGljZTEgKyAkY29tcERpY2UyOwoKaWYgKCgkYW5vbkRpY2UxID09ICRhbm9uRGljZTIpJiYoJGNvbXBEaWNlMSA9PSAkY29tcERpY2UyKSkgewoJZWNobyAi0JTQstCwINC00LDQsdC70LAgLSDQsdC+0LvRjNGI0LDRjyDRg9C00LDRh9CwLlxuIjsKfSBlbHNlaWYgKCRhbm9uUG9pbnRzID4gJGNvbXBQb2ludHMpIHsKCWVjaG8gItCQ0L3QvtC9INCy0YvQuNCz0YDQsNC7LlxuIjsKfSBlbHNlaWYgKCRjb21wUG9pbnRzID4gJGFub25Qb2ludHMpIHsKCWVjaG8gItCa0L7QvNC/INC/0L7QsdC10LTQuNC7LlxuIjsKfSBlbHNlIHsKCWVjaG8gItCf0L7QsdC10LTQuNC70LAg0LTRgNGD0LbQsdCwXG4iOwp9Cgo/Pg==