home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 26
/
CD_ASCQ_26_1295.iso
/
vrac
/
ysfl12.zip
/
FILES1.ZIP
/
magic.imp
< prev
next >
Wrap
Text File
|
1995-04-02
|
1KB
|
46 lines
{$A+,B-,D-,F+,G+,I-,K+,L-,N-,P-,Q-,R-,S+,T+,V-,W-,X+,Y-}
unit MAGIC;
{
File: MAGIC.IMP
Author: Bob Swart [100434,2072]
Purpose: implicit import unit for MAGIC.DLL
}
interface
Const
NoneID = 0;
UserID = 1;
CompID = 2;
Type
TPlayer = NoneID..CompID;
Const
NilPlace = 0; { move impossible }
FirstPlace = 1;
LastPlace = 9;
Type
TPlace = FirstPlace..LastPlace;
TMove = NilPlace..LastPlace;
Type
HGame = Word; { Handle to a game }
function NewGame: HGame;
procedure EndGame(Game: HGame);
procedure MakeMove(Game: HGame; ID: TPlayer; Place: TPlace);
function NextMove(Game: HGame; ID: TPlayer): TMove;
function IsWinner(Game: HGame): TPlayer;
function GetValue(Game: HGame; Place: TPlace): TPlayer;
implementation
function NewGame; external 'MAGIC' index 1;
procedure EndGame; external 'MAGIC' index 2;
procedure MakeMove; external 'MAGIC' index 3;
function NextMove; external 'MAGIC' index 4;
function IsWinner; external 'MAGIC' index 5;
function GetValue; external 'MAGIC' index 6;
end.