Localize file www.TrSek.com/cover/mac/statki.pas{ STATKI.PAS Copyright (c) Mac }
{ Game in ships. }
{ }
{ Datum:23.03.2006 http://www.trsek.com }
program Statki_game;
uses CRT;
var
i, j, x, y, z, q, a, b :integer;
punktycpu, punktyplayera:word;
c:char;
plansza1: array [1..10,1..10] of integer;
plansza2: array [1..10,1..10] of integer;
maszty4: array[1..4,1..4] of integer;
maszty3: array[1..3,1..3] of integer;
maszty2: array[1..2,1..2] of integer;
if c='w' then
begin
plansza2[a,b-1]:=1; { góra }
gotoxy(42+a*2,9+b);
write(#219);
plansza2[a,b-2]:=1;
gotoxy(42+a*2,8+b);
write(#219);
plansza2[a,b-3]:=1;
gotoxy(42+a*2,7+b);
write(#219);
end;
if c='s' then { dó³ }
begin
plansza2[a,b+1]:=1;
gotoxy(42+a*2,11+b);
write(#219);
plansza2[a,b+2]:=1;
gotoxy(42+a*2,12+b);
write(#219);
plansza2[a,b+3]:=1;
gotoxy(42+a*2,13+b);
write(#219);
end;
if c='d' then { prawo }
begin
plansza2[a+1,b]:=1;
gotoxy(44+a*2,10+b);
write(#219);
plansza2[a+2,b]:=1;
gotoxy(46+a*2,10+b);
write(#219);
plansza2[a+3,b]:=1;
gotoxy(48+a*2,10+b);
write(#219);
end;
if c='a' then { lewo }
begin
plansza2[a-1,b]:=1;
gotoxy(40+a*2,10+b);
write(#219);
plansza2[a-2,b]:=1;
gotoxy(38+a*2,10+b);
write(#219);
plansza2[a-3,b]:=1;
gotoxy(36+a*2,10+b);
write(#219);
end;