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

⟦7d873d4cd⟧ Ada Source

    Length: 3072 (0xc00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package Puz_Puzzle, seg_0053a0

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 Xlbt_Arithmetic;  
use Xlbt_Arithmetic;

package Puz_Puzzle is

    type Direction       is (Left, Right, Up, Down, None);  
    type Direction_Array is array (S_Natural range <>) of Direction;  
    type Direction_List  is access Direction_Array;

    type S_Long_2d        is array (S_Natural range <>) of S_Long;  
    type S_Long_2d_Access is access S_Long_2d;

    Output_Logging : Boolean   := False;  
    Position       : S_Long_2d_Access;  
    Puzzle_Size    : S_Natural := 4;  
    Puzzle_Width   : S_Natural := 4;  
    Puzzle_Height  : S_Natural := 4;  
    Space_X        : S_Long;          -- location of space in
    Space_Y        : S_Long;          --  the position matrix

    procedure Initialize;  
    procedure Move_Space_To (Loc : S_Natural);  
    procedure Scramble;  
    procedure Abort_Solving;  
    function  Solving_Status return Boolean;  
    procedure Solve;

    function Random return S_Natural;

end Puz_Puzzle;  

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=1f rec1=00 rec2=01 rec3=022
        [0x01] rec0=01 rec1=00 rec2=02 rec3=000
    tail 0x2170089508197895f49cd 0x42a00088462063203