|
|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 3072 (0xc00)
Types: Ada Source
Notes: 03_class, FILE, R1k_Segment, e3_tag, package Reines, seg_00e3be
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦cfc2e13cd⟧ »Space Info Vol 2«
└─⟦this⟧
--
-- Christophe MARCHAL
-- Probleme des 8 reines
-- sous FADA version 4 : 3 mars 1991
--
with Expertsystem, Chrono;
use Expertsystem;
package Reines is
subtype Ttaille is Natural range 0 .. 9; -- jusqu'a 9 reines
type Rangee is array (Ttaille) of Ttaille;
type Object is
record
Echiquier : Rangee := (others => 0);
Niveau : Ttaille := 0;
Ouvert : Boolean := False;
end record;
Rangcourant : Ttaille := 0; -- rangee courante
Rangfinal : Ttaille := Ttaille'Last; -- but a atteindre
procedure Enroute (Nbrereine : Natural);
function Niveaunonouvert (Niveau : Ttaille) return Collection.Object;
function Niveaufinal (Niveau : Ttaille) return Collection.Object;
procedure Affichersol (Sol : Collection.Object);
procedure Ajoutsituation (Sit : Expertsystem.Reference;
Rang : Ttaille;
Colonne : Ttaille);
procedure Fermesituation (Sit : Expertsystem.Reference);
function Situationcorrecte (Sit : Expertsystem.Reference;
Rang : Ttaille;
Colonne : Ttaille) return Boolean;
end Reines;
nblk1=2
nid=0
hdr6=4
[0x00] rec0=1e rec1=00 rec2=01 rec3=004
[0x01] rec0=06 rec1=00 rec2=02 rec3=001
tail 0x2170b0e2e821e3fc6944a 0x42a00088462060003