DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400 Tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Rational R1000/400 Tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: ┃ B T

⟦a0fd493c8⟧ TextFile

    Length: 917 (0x395)
    Types: TextFile
    Names: »B«

Derivation

└─⟦85b835f43⟧ Bits:30000549 8mm tape, Rational 1000, Xlib rev 6.00
    └─ ⟦0c20f784e⟧ »DATA« 
        └─⟦1abbe589f⟧ 
            └─⟦306851c02⟧ 
                └─⟦this⟧ 

TextFile

separate (Puz_Main)  
procedure Figure_Puzzle_Size (Size : String) is  
begin  
    for I in Size'Range loop  
        if Size (I) = 'x' or else  
           Size (I) = 'X' then  
            Puzzle_Width  := S_Natural'Value (Size (Size'First .. I - 1));  
            Puzzle_Height := S_Natural'Value (Size (I + 1 .. Size'Last));  
        end if;  
    end loop;  
    if Puzzle_Width < 4 then  
        Puzzle_Width := 4;  
    end if;  
    if Puzzle_Height < 4 then  
        Puzzle_Height := 4;  
    end if;  
    if Puzzle_Width rem 2 = 1 and then  
       Puzzle_Height rem 2 = 1 then  
        Puzzle_Width := Puzzle_Width + 1;
        -- Puzzle_Size must be a multiple of 2.  One of these two guys
        -- must be even.  This guarantees that.
    end if;  
exception  
    when others =>  
        Text_Io.Put_Line ("Error with Size specification: " & Size);  
        raise;  
end Figure_Puzzle_Size;