Advertisement
Gromov

Untitled

Oct 25th, 2018
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 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: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. C := ReadKey;
  25. Str(Ord(C[1]), TempS);
  26. C2 := '#' + TempS;
  27. if C = #13 then
  28.  
  29. textcolor(1);
  30. delay(500);
  31. writeln(' ');
  32. Writeln(' Dators ',d);
  33. l:=Dators;
  34. writeln(' ');
  35.  
  36. textcolor(10);
  37. randomize;
  38. for b:=1 to 6 do
  39. begin
  40. a:=random(6);
  41. r:=random(6);
  42. writeln(' ',b,' ',r);
  43. end;
  44.  
  45.  
  46.  
  47.  
  48. textcolor(2);
  49. delay(500);
  50. writeln(' ~~~~~~~~~~~~~~~~~~~~~~');
  51. writeln(' Number of points');
  52. writeln(' ~~~~~~~~~~~~~~~~~~~~~~');
  53. delay(500);
  54.  
  55. textcolor(10);
  56.  
  57.  
  58. writeln(' ',b,' ',r);
  59. writeln(' ');
  60. writeln(' Winner-');
  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