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: ┃ T V

⟦796f027f1⟧ TextFile

    Length: 703 (0x2bf)
    Types: TextFile
    Names: »V«

Derivation

└─⟦a7d1ea751⟧ Bits:30000550 8mm tape, Rational 1000, !users!projects 94_04_11
    └─ ⟦129cab021⟧ »DATA« 
        └─⟦this⟧ 
└─⟦2f6cfab89⟧ Bits:30000547 8mm tape, Rational 1000, !projects 94-01-04
    └─ ⟦d65440be7⟧ »DATA« 
        └─⟦this⟧ 

TextFile

package Magic is

    type Max_Size is range 1 .. 999;
    type Square (Size : Max_Size) is limited private;

    type Direction is (North, South, East, West);
    type Token is range 0 .. Max_Size'Last ** 2;
    procedure Go_To_Center (S : in Square);
    procedure Move (S : in Square; D : in Direction);
    procedure Deposit (S : in out Square; T : in Token);
    function Cell_Busy (S : in Square) return Boolean;
    procedure Display (S : in Square);

private
    type Table is array (Max_Size range <>, Max_Size range <>) of Token;
    type Square (Size : Max_Size) is
        record
            T : Table (1 .. Size, 1 .. Size) := (1 .. Size => (1 .. Size => 0));
        end record;
end Magic;