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

  1. {************************************************}
  2. {                                                }
  3. {   Turbo Vision Chess Demo                      }
  4. {   Copyright (c) 1992 by Borland International  }
  5. {                                                }
  6. {************************************************}
  7.  
  8. { The chess programs consist of 3 binary files:
  9.  
  10.     TVCHESS.EXE   - DOS text mode chess program (uses Turbo Vision)
  11.     OWLCHESS.EXE  - Windows chess program (uses ObjectWindows)
  12.     CHESS.DLL     - Chess analysis engine dynamic link library (DLL)
  13.                     that is shared by both TVCHESS.EXE and OWLCHESS.EXE
  14.  
  15.   IMPORTANT NOTE: If you use the IDE to build this program, make sure
  16.   to change to the \BP\EXAMPLES\CHESS directory before doing a compile.
  17.  
  18.   TVCHESS is a DOS protected mode application (DPMI). To build
  19.   it, set Compile|Target to Protected from inside the IDE or type the
  20.   following command-line at a DOS prompt:
  21.  
  22.     bpc /m /cp tvchess
  23.  
  24.   (Note you can also produce a real mode version of TVCHESS which
  25.   will statically link in the CHESS DLL units.)
  26.  
  27.   OWLCHESS is a Windows application. To build it, set Compile|Target to
  28.   Windows from inside the IDE or type the following command-line at a
  29.   DOS prompt:
  30.  
  31.     bpc /m /cw owlchess
  32.  
  33.   CHESS.DLL is a Windows format DLL and comes already built. To rebuild
  34.   it, set Compile|Target to Windows from inside the IDE or type the
  35.   following command-line at a DOS prompt:
  36.  
  37.     bpc /m /cw chess
  38.  
  39. }
  40.  
  41. program ChessDemo;
  42.  
  43. uses App, Views, Dialogs, Menus, Objects, Drivers, TVChsCmd,
  44.   TVBoard, TVChsApp;
  45.  
  46. { If you get a FILE NOT FOUND error when compiling this program
  47.   from a DOS IDE, change to the \BP\EXAMPLES\CHESS directory
  48.   (use File|Change dir).
  49.  
  50.   This will enable the compiler to find all of the units used by
  51.   this program.
  52. }
  53.  
  54. var
  55.   ChessDLLDemo: TChessApp;
  56.  
  57. begin
  58.   ChessDLLDemo.Init;
  59.   ChessDLLDemo.Run;
  60.   ChessDLLDemo.Done;
  61. end.
  62.