Advertisement
Gromov

Untitled

Oct 26th, 2018
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. program Game;
  2. Uses
  3. CRT;
  4. var
  5.  
  6. C : String[2];
  7. C2, TempS : String;
  8. d,l:string;
  9. a,r,b,s,j,z:integer;
  10.  
  11.  
  12. begin
  13. clrscr;
  14. Textcolor(3);
  15. writeln('Welcome to Super Mega Game! Enter your name!');
  16.  
  17. textcolor(14);
  18. readln(d);
  19.  
  20. Textcolor(5);
  21. writeln('Dear ',d,',press Enter to start throwing the spear!');
  22.  
  23. textcolor(3);
  24. readln;
  25.  
  26. textcolor(1);
  27. delay(500);
  28. writeln(' ');
  29. Writeln(' Dators ',d);
  30.  
  31. writeln(' ');
  32.  
  33. textcolor(10);
  34. randomize;
  35. for b:=1 to 6 do
  36. begin
  37. n:=random(6);
  38. r:=random(6);
  39. writeln(' ',b,' ',r);
  40. j:= j+b;
  41. z:=z+r;
  42. end;
  43.  
  44.  
  45.  
  46.  
  47. textcolor(2);
  48. delay(500);
  49. writeln(' ~~~~~~~~~~~~~~~~~~~~~~');
  50. writeln(' Number of points');
  51. writeln(' ~~~~~~~~~~~~~~~~~~~~~~');
  52. delay(500);
  53.  
  54. textcolor(10);
  55.  
  56.  
  57. writeln(' ',j,' ',z);
  58. writeln(' ');
  59. If j>z then writeln(' Winner- Dators')
  60. Else writeln('Winner-',d);
  61.  
  62. textcolor(4);
  63. delay(500);
  64. writeln(' ');
  65. writeln(' Game Over');
  66.  
  67. textcolor(14);
  68. writeln(' ');
  69. writeln(' Apple Inc.');
  70. readln;
  71. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement