Play it for three times and we can get the final result.
My answer:
var
number, guess: integer;
begin
randomize;
number:= random(3)+1;
writeln('Wellcome to the game of snap.');
readlnln (guess);
if guess>number then begin writeln('It''s too big! Please try again.'); end
else
if guess<number then begin writeln('It''s too small! Please try again!'); end
else begin writeln ('CONGRATULATIONS, you have chosen the right number."); end;
until guess=number;
sleep(10000);
end.
Please help to make changes.