<?php
$manCubeSum = $manCube1 + $manCube2;
$aiCubeSum = $aiCube1 + $aiCube2;
echo "Вы бросаете кубики...\n выпало $manCube1 и $manCube2 , в сумме $manCubeSum \n";
echo "Компьютер бросает кубики...\n Выпало $aiCube1 и $aiCube2 , в сумме $aiCubeSum\n";
if ($aiCubeSum == $manCubeSum) {
echo "Ничья, переигрывайте\n";
} elseif ($aiCube1 == $aiCube2) {
echo "Дабл! Компьютер победил!\n";
} elseif ($manCube1 == $manCube2) {
echo "Дабл! Вы победили!\n";
} elseif ($manCubeSum > $aiCubeSum) {
echo "Вы победили!\n";
} elseif ($manCubeSum < $aiCubeSum) {
echo "Компьютер победил!\n";
}
PD9waHAKCmVycm9yX3JlcG9ydGluZygtMSk7CgokbWFuQ3ViZTEgPSBtdF9yYW5kKDEsNik7CiRtYW5DdWJlMiA9IG10X3JhbmQoMSw2KTsKJG1hbkN1YmVTdW0gPSAkbWFuQ3ViZTEgKyAkbWFuQ3ViZTI7CgokYWlDdWJlMSA9IG10X3JhbmQoMSw2KTsKJGFpQ3ViZTIgPSBtdF9yYW5kKDEsNik7CiRhaUN1YmVTdW0gPSAkYWlDdWJlMSArICRhaUN1YmUyOwoKZWNobyAi0JLRiyDQsdGA0L7RgdCw0LXRgtC1INC60YPQsdC40LrQuC4uLlxuINCy0YvQv9Cw0LvQviAkbWFuQ3ViZTEg0LggJG1hbkN1YmUyICwg0LIg0YHRg9C80LzQtSAkbWFuQ3ViZVN1bSBcbiI7CmVjaG8gItCa0L7QvNC/0YzRjtGC0LXRgCDQsdGA0L7RgdCw0LXRgiDQutGD0LHQuNC60LguLi5cbiDQktGL0L/QsNC70L4gJGFpQ3ViZTEg0LggJGFpQ3ViZTIgLCDQsiDRgdGD0LzQvNC1ICRhaUN1YmVTdW1cbiI7CgppZiAoJGFpQ3ViZVN1bSA9PSAkbWFuQ3ViZVN1bSkgewoJZWNobyAi0J3QuNGH0YzRjywg0L/QtdGA0LXQuNCz0YDRi9Cy0LDQudGC0LVc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