Advertisement
Gromov

Untitled

Oct 26th, 2018
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. program game;
  2. Uses
  3. CRT;
  4. var
  5. d:string;
  6. a,r,b,j,z:integer;
  7. begin
  8. clrscr;
  9. Textcolor(3);
  10. writeln('Ievadi savu vardu!');
  11. textcolor(14);
  12. readln(d);
  13. Textcolor(5);
  14. writeln('Dargs ',d,',Spiedi enter,lai mestu kaulinu!');
  15. textcolor(3);
  16. readln;
  17. textcolor(1);
  18. delay(500);
  19. writeln(' ');
  20. Writeln(' Dators ',d);
  21. writeln(' ');
  22. textcolor(10);
  23. randomize;
  24. for b:=1 to 6 do
  25. begin
  26. a:=random(6)+1;
  27. r:=random(6)+1;
  28. writeln(' ',a,' ',r);
  29. j:= j+a;
  30. z:=z+r;
  31. end;
  32. textcolor(2);
  33. delay(500);
  34. writeln(' ~~~~~~~~~~~~~~~~~~~~~~');
  35. writeln(' Punktu skaits');
  36. writeln(' ~~~~~~~~~~~~~~~~~~~~~~');
  37. delay(500);
  38. textcolor(10);
  39. writeln(' ',j,' ',z);
  40. writeln(' ');
  41. If j>z then writeln(' Uzvareja- Dators')
  42. Else writeln('Uzvareja-',d);
  43. textcolor(4);
  44. delay(500);
  45. writeln(' ');
  46. writeln(' Game Over');
  47. textcolor(14);
  48. writeln(' ');
  49. writeln(' by Alexander Puchenkin');
  50. readln;
  51. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement