fork(1) download
  1. <?php
  2.  
  3.  
  4. $anondice1 = mt_rand(1,6); /*Perv br Antona/
  5. $anondice1 = mr_rand(1,6); /*Vtotoi br Antona/
  6. $compdice1 = mr_rand(1,6); /*perv comp/
  7. $compdice2 = mr_rand(1,6); /*2 br comp/
  8.  
  9. echo "У антона выпало ($anondice1) и ($anondice2)\n У компьютера ($compdice1) и ($compdice2) \n";
  10. /*summa chosel/
  11. $anonsum =($anondice1+$anondice2);
  12. $compsum = ($compdice1+$compdice2);
  13. /dabl = pobedil/
  14. if (($anondice1==$anondice2)&& ($compdice1==$compdice2)) {
  15. echo"2 dabla, zhdet udacha - screenshot!!\n";
  16. exit();
  17. }
  18. if($anondice1==$anondice1 ) {
  19. echo "Pobedil anton";
  20.  
  21. }
  22. elseif($compdice1==$compdice2){
  23. echo"pobedil comp";
  24.  
  25. }
  26. else{ echo"nikto ne pobedil";
  27. }
  28.  
  29. $random = mt_rand(1,4) ;
  30. echo "выпало$random \n";
Success #stdin #stdout #stderr 0.02s 82880KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Warning:  Unterminated comment starting line 5 in /home/rbWFA2/prog.php on line 5