home *** CD-ROM | disk | FTP | other *** search
/ Collection of Hack-Phreak Scene Programs / cleanhpvac.zip / cleanhpvac / REVERSEM.ZIP / REVERSEM.HPP < prev    next >
Text File  |  1994-10-10  |  2KB  |  55 lines

  1. /*--------------------------------------------------------------------------
  2.  
  3.   REVERSEM :
  4.  
  5.   UNIT     : COMMON DEFINITIONS
  6.  
  7.   COPYRIGHT (C) 1994 Erich P. Gatejen  ALL RIGHTS RESERVED
  8.   This is Freeware.  You may distribute it as you wish.  However, you may not
  9.   distribute a modified version without my consent.
  10.  
  11.   Feel free to cut and paste any algorthm.
  12.  
  13.   NOTE: XTILE is (C) 1992, 1994 by myself.  It is NOT freeware.  You may use
  14.     it for personal projects, but otherwise, it is not to be distributed
  15.     outside this REVERSEM package.  (Contact me if you wish to do
  16.     otherwise)
  17.  
  18. ---------------------------------------------------------------------------*/
  19.  
  20. // ------------------------------------------------------------------------
  21. // --- DEFINITIONS
  22. // ------------------------------------------------------------------------
  23.  
  24. // --- General named numbers (constants) ----------------------------------
  25. #define  BOARDXSIZE     8
  26. #define  BOARDYSIZE     8
  27. #define  TOPX        0
  28. #define  BOTTOMX    7
  29. #define  TOPY         0
  30. #define  BOTTOMY    7
  31.  
  32. #define  MAX_CHILDREN   12    // A SWAG
  33.  
  34. // --- Type casts ---------------------------------------------------------
  35. typedef  int  heuristic;
  36.  
  37. // --- Enumerate BOOLEAN --------------------------------------------------
  38. enum BOOLEAN { FALSE = 0, TRUE = 1 };
  39.  
  40. // --- Enumerations for MIN/MAX -------------------------------------------
  41. enum STAGE { TREE_TOP = 0, MIN_PLY, MAX_PLY };
  42.  
  43. // --- Enumerations for how smart this computer will be -------------------
  44. // --- and how it may otherwise behave
  45. enum BRAIN { SIMPLETON = 0,        // Idiot
  46.          DULLARD,
  47.          AVERAGE,
  48.          SWIFT,
  49.          GENIUS,
  50.          EXPERIMENTAL
  51.  
  52. };
  53.  
  54.  
  55.