text stringlengths 0 234 |
|---|
--------------------------------------------------------------------------------------------- |
--------------------------------------------------------------------------------------------- |
--------------------------------------------------------------------------------------------- |
procedure dice (A, X_Start, Y_Start: in Integer) is |
begin |
Goto_XY(X_Start, Y_Start); |
for I in 1..5 loop |
--Set_Background_Colour(White); |
if I = 1 then |
Put(Upper_Left_Corner); |
Put(Horisontal_Very_High_Line, Times => 9); |
Put(Upper_Right_Corner); |
Goto_XY(X_Start, Y_Start + I); |
elsif I = 5 then |
Put(Lower_Left_Corner); |
Put(Horisontal_Very_Low_Line, Times => 9); |
Put(Lower_Right_Corner); |
else |
case A is |
when 1 => |
Put(Vertical_Line); |
if I = 3 then |
Put(" • "); |
Put(Vertical_Line); |
Goto_XY(X_Start, Y_Start + I); |
elsif I = 2 or I = 4 then |
Put(" "); |
Put(Vertical_Line); |
Goto_XY(X_Start, Y_Start + I); |
end if; |
when 2 => |
Put(Vertical_Line); |
if I = 2 then |
Put(" • "); |
Put(Vertical_Line); |
Goto_XY(X_Start, Y_Start + I); |
elsif I = 3 then |
Put(" "); |
Put(Vertical_Line); |
Goto_XY(X_Start, Y_Start + I); |
elsif I = 4 then |
Put(" • "); |
Put(Vertical_Line); |
Goto_XY(X_Start, Y_Start + I); |
end if; |
when 3 => |
Put(Vertical_Line); |
if I = 2 then |
Put(" • "); |
Put(Vertical_Line); |
Goto_XY(X_Start, Y_Start + I); |
elsif I = 3 then |
Put(" • "); |
Put(Vertical_Line); |
Goto_XY(X_Start, Y_Start + I); |
elsif I = 4 then |
Put(" • "); |
Put(Vertical_Line); |
Goto_XY(X_Start, Y_Start + I); |
end if; |
when 4 => |
Put(Vertical_Line); |
if I = 2 then |
Put(" • • "); |
Put(Vertical_Line); |
Goto_XY(X_Start, Y_Start + I); |
elsif I = 3 then |
Put(" "); |
Put(Vertical_Line); |
Goto_XY(X_Start, Y_Start + I); |
elsif I = 4 then |
Put(" • • "); |
Put(Vertical_Line); |
Goto_XY(X_Start, Y_Start + I); |
end if; |
when 5 => |
Put(Vertical_Line); |
if I = 2 then |
Put(" • • "); |
Put(Vertical_Line); |
Goto_XY(X_Start, Y_Start + I); |
elsif I = 3 then |
Put(" • "); |
Put(Vertical_Line); |
Goto_XY(X_Start, Y_Start + I); |
elsif I = 4 then |
Put(" • • "); |
Put(Vertical_Line); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.