getdate(tt[5],tt[6],tt[7],tt[8]);
end;
procedure suc;
var x:integer;
begin
x:=0;
tt[9]:=tt[2];
tt[10]:=tt[3];
time;
if tt[2]<tt[9]then
begin
tt[2]:=tt[2]+60;
x:=1;
end;
tt[9]:=tt[2]-tt[9];
if tt[3]-x<tt[10] then
tt[3]:=tt[3]-x+60;
tt[10]:=tt[3]-tt[10];
clrscr;
gotoxy(30,6);
write('胜利 !');
gotoxy(20,10);
write('所用步数: ',step);
gotoxy(20,12);
write('游戏所用时间: ',tt[9],' 分 ',tt[10],' 秒.');
end;
procedure shoudong;
var i,j,l,x:integer;
begin
clrscr;
gotoxy(2,5);
write('手动输入圆盘:');
for i:=1to 3 do
begin
gotoxy(6,6+i);
write(chr(ord('A')+i-1),': ');
repeat
l:=ord(readkey)-ord('0');
until l<=n;
write(l,' ');
for j:=1to l do
begin
repeat
x:=ord(readkey)-ord('0');
until x<=n;
write(x,' ');
now[x]:=i;
end;
end;
gotoxy(6,11);
write('目标柱是: ');
repeat
t:=ord(readkey)-ord('a')+1;
until (t>=1)and(t<=3);
write(upcase(chr(ord('a')+t-1)));