home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 9 / 09.iso / l / l040 / 10.ddi / CHESS.ZIP / CHESS.PAS < prev    next >
Encoding:
Pascal/Delphi Source File  |  1992-10-27  |  2.3 KB  |  90 lines

  1. {************************************************}
  2. {                                                }
  3. {   Chess - Shared DLL Example                   }
  4. {   CHESS.DLL Main file.                         }
  5. {   Copyright (c) 1992 by Borland International  }
  6. {                                                }
  7. {************************************************}
  8.  
  9. { The chess programs consist of 3 binary files:
  10.  
  11.     CHESS.DLL     - Chess analysis engine dynamic link library (DLL)
  12.                     that is shared by both TVCHESS.EXE and OWLCHESS.EXE
  13.     OWLCHESS.EXE  - Windows chess program (uses ObjectWindows)
  14.     TVCHESS.EXE   - DOS text mode chess program (uses Turbo Vision)
  15.  
  16.   IMPORTANT NOTE: If you use the IDE to build this DLL, make sure
  17.   to change to the \BP\EXAMPLES\CHESS directory before doing a compile.
  18.  
  19.   CHESS.DLL is a Windows format DLL and comes already built. To rebuild
  20.   it, set Compile|Target to Windows from inside the IDE or type the
  21.   following command-line at a DOS prompt:
  22.  
  23.     bpc /m /cw chess
  24.  
  25.   OWLCHESS is a Windows application. To build it, set Compile|Target to
  26.   Windows from inside the IDE or type the following command-line at a
  27.   DOS prompt:
  28.  
  29.     bpc /m /cw owlchess
  30.  
  31.   TVCHESS is a DOS protected mode application (DPMI). To build
  32.   it, set Compile|Target to Protected from inside the IDE or type the
  33.   following command-line at a DOS prompt:
  34.  
  35.     bpc /m /cp tvchess
  36.  
  37.   (Note you can also produce a real mode version of TVCHESS which
  38.   will statically link in the CHESS DLL units.)
  39.  
  40. }
  41.  
  42. library Chess;
  43.  
  44. {$D Chess anlsysis engine for DOS and Windows}
  45. {$C PRELOAD MOVEABLE DISCARDABLE}
  46.  
  47. {$IFNDEF WINDOWS}
  48.   Set Target to Windows.
  49. {$ENDIF}
  50.  
  51. uses ChessInf;
  52.  
  53. { If you get a FILE NOT FOUND error when compiling this DLL
  54.   from a DOS IDE, change to the \BP\EXAMPLES\CHESS directory
  55.   (use File|Change dir).
  56.  
  57.   This will enable the compiler to find all of the units used by
  58.   this DLL.
  59. }
  60.  
  61. exports
  62.   NewGame,
  63.   DisposeGame,
  64.   ParseMove,
  65.   RetractMove,
  66.   SubmitMove,
  67.   VerifyMove,
  68.   ComputerMove,
  69.   ForceMove,
  70.   AbortSearch,
  71.   ThinkAhead,
  72.   Think,
  73.   SetBoard,
  74.   SetPlayer,
  75.   MakeChange,
  76.   GetSearchStatus,
  77.   GetChessStatus,
  78.   GetLastMove,
  79.   GetHintMove,
  80.   MoveToStr,
  81.   GetBoard,
  82.   GetPlayer,
  83.   GetCurrentMove,
  84.   GetMainLine,
  85.   GetValidMoves,
  86.   GetNodes;
  87.  
  88. begin
  89. end.
  90.