DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400

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

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦52c345c5b⟧ Ada Source

    Length: 2048 (0x800)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package Square, seg_058925

Derivation

└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
    └─ ⟦cfc2e13cd⟧ »Space Info Vol 2« 
        └─⟦this⟧ 

E3 Source Code



with Text_Io;
package Square is  
    subtype Dim_Max is Integer range 0 .. 100;
    type Direction is (Nord, Sud, Est, Ouest, Nord_Ouest,
                       Nord_Est, Sud_Ouest, Sud_Est);
    subtype Token is Integer range 0 .. 10200;
    type Position is
        record
            X : Integer range 0 .. 100;
            Y : Integer range 0 .. 100;
        end record;
    type Board is array (Dim_Max range <>, Dim_Max range <>) of Token;  
    Taille : Dim_Max;
    procedure Get_Dimension (Dim : out Dim_Max);
    procedure Go_Centre;
    procedure Move (D : Direction);
    procedure Depose (T : Token; Square : in out Board);  
    package Io is new Text_Io.Integer_Io (Natural);
private
    Pos_Courante : Position;  
end Square;

E3 Meta Data

    nblk1=1
    nid=0
    hdr6=2
        [0x00] rec0=17 rec1=00 rec2=01 rec3=000
    tail 0x21766307888ca80ec95a8 0x42a00088462060003