home *** CD-ROM | disk | FTP | other *** search
/ Dream 57 / Amiga_Dream_57.iso / Amiga / Jeux / Reflexion / Crafty-15.19.lha / crafty-15.19 / src / evaluate.h < prev    next >
Text File  |  1998-09-13  |  6KB  |  117 lines

  1. #if !defined(EVALUATE_INCLUDED)
  2. #  define    EVALUATE_INCLUDED
  3.  
  4. #  define                                 DRAW           (0)
  5.  
  6. #  define                            BAD_TRADE         (120)
  7. #  define                       PAWN_UNBLOCKED           (6)
  8. #  define                             PAWN_RAM          (10)
  9. #  define                        PAWN_ISOLATED          (12)
  10. #  define                             PAWN_JAM          (25)
  11. #  define                         PAWN_DOUBLED           (2)
  12. #  define                         PAWN_WEAK_P1          (12)
  13. #  define                         PAWN_WEAK_P2          (16)
  14. #  define                          PAWN_PASSED           (8)
  15. #  define           PAWN_PROTECTED_PASSER_WINS          (11)
  16. #  define                         CENTER_PAWNS           (5)
  17.  
  18. #  define                       PAWN_ADVANCE_A          (-3)
  19. #  define                       PAWN_ADVANCE_B          (-3)
  20. #  define                       PAWN_ADVANCE_C           (1)
  21. #  define                       PAWN_ADVANCE_D           (1)
  22. #  define                       PAWN_ADVANCE_E           (1)
  23. #  define                       PAWN_ADVANCE_F           (1)
  24. #  define                       PAWN_ADVANCE_G          (-3)
  25. #  define                       PAWN_ADVANCE_H          (-3)
  26.  
  27. #  define                    PAWN_ADVANCE_BC_A          (-3)
  28. #  define                    PAWN_ADVANCE_BC_B          (-3)
  29. #  define                    PAWN_ADVANCE_BC_C           (1)
  30. #  define                    PAWN_ADVANCE_BC_D           (1)
  31. #  define                    PAWN_ADVANCE_BC_E           (1)
  32. #  define                    PAWN_ADVANCE_BC_F           (1)
  33. #  define                    PAWN_ADVANCE_BC_G          (-4)
  34. #  define                    PAWN_ADVANCE_BC_H          (-4)
  35.  
  36. #  define                    PAWN_ADVANCE_KING           (1)
  37.   
  38. #  define                    PAWN_ADVANCE_EG_A           (3)
  39. #  define                    PAWN_ADVANCE_EG_B           (3)
  40. #  define                    PAWN_ADVANCE_EG_C           (3)
  41. #  define                    PAWN_ADVANCE_EG_D           (4)
  42. #  define                    PAWN_ADVANCE_EG_E           (4)
  43. #  define                    PAWN_ADVANCE_EG_F           (3)
  44. #  define                    PAWN_ADVANCE_EG_G           (3)
  45. #  define                    PAWN_ADVANCE_EG_H           (3)
  46.  
  47. #  define          PAWN_CONNECTED_PASSED_6TH (PAWN_VALUE+20)
  48.   
  49. #  define          PAWN_SUPPORTED_PASSED_RANK2           (0)
  50. #  define          PAWN_SUPPORTED_PASSED_RANK3           (0)
  51. #  define          PAWN_SUPPORTED_PASSED_RANK4           (0)
  52. #  define          PAWN_SUPPORTED_PASSED_RANK5          (12)
  53. #  define          PAWN_SUPPORTED_PASSED_RANK6          (60)
  54. #  define          PAWN_SUPPORTED_PASSED_RANK7         (100)
  55.  
  56. #  define                  KNIGHT_KING_TROPISM           (2)
  57. #  define                  BISHOP_KING_TROPISM           (2)
  58. #  define                    ROOK_KING_TROPISM           (2)
  59. #  define                   QUEEN_KING_TROPISM           (3)
  60. #  define                    KING_KING_TROPISM          (15)
  61.   
  62. #  define                       KNIGHT_OUTPOST           (2)
  63.   
  64. #  define                       BISHOP_TRAPPED         (150)
  65. #  define                       BISHOP_OUTPOST           (1)
  66. #  define                      BISHOP_MOBILITY           (3)
  67. #  define                          BISHOP_PAIR          (15)
  68.   
  69. #  define                          ROOK_ON_7TH          (24)
  70. #  define                    ROOK_ABSOLUTE_7TH          (20)
  71. #  define              ROOK_CONNECTED_7TH_RANK          (12)
  72. #  define                       ROOK_OPEN_FILE          (20)
  73. #  define                  ROOK_HALF_OPEN_FILE           (8)
  74. #  define             ROOK_CONNECTED_OPEN_FILE           (8)
  75. #  define              ROOK_BEHIND_PASSED_PAWN          (16)
  76. #  define                         ROOK_TRAPPED          (50)
  77. #  define                       ROOK_WEAK_PAWN           (3)
  78.   
  79. #  define               QUEEN_ROOK_ON_7TH_RANK          (20)
  80.  
  81. #  define              KING_SAFETY_GOOD_BISHOP           (2)
  82. #  define                KING_SAFETY_MATE_G2G7          (10)
  83. #  define              KING_SAFETY_MATE_THREAT        (1200)
  84. #  define                KING_SAFETY_OPEN_FILE           (3)
  85. #  define                       KING_BACK_RANK           (3)
  86. #  define          KING_SAFETY_PAWN_ATTACK_4TH           (1)
  87. #  define                KING_SAFETY_STONEWALL           (4)
  88.  
  89. #  define                  KING_SAFETY_RP_ADV1           (1)
  90. #  define               KING_SAFETY_RP_TOO_FAR           (2)
  91. #  define        KING_SAFETY_RP_FILE_HALF_OPEN           (3)
  92. #  define   KING_SAFETY_RP_FILE_OTHERHALF_OPEN           (5)
  93.  
  94. #  define                  KING_SAFETY_NP_ADV1           (1)
  95. #  define               KING_SAFETY_NP_TOO_FAR           (2)
  96. #  define        KING_SAFETY_NP_FILE_HALF_OPEN           (3)
  97. #  define   KING_SAFETY_NP_FILE_OTHERHALF_OPEN           (4)
  98.  
  99. #  define                  KING_SAFETY_BP_ADV1           (1)
  100. #  define               KING_SAFETY_BP_TOO_FAR           (2)
  101. #  define        KING_SAFETY_BP_FILE_HALF_OPEN           (2)
  102. #  define   KING_SAFETY_BP_FILE_OTHERHALF_OPEN           (2)
  103.  
  104. #  define               KING_SAFETY_RP_BP_ADV1           (2)
  105.  
  106. #  define                 DEVELOPMENT_THEMATIC           (6)
  107. #  define                  DEVELOPMENT_UNMOVED          (10)
  108. #  define             DEVELOPMENT_BLOCKED_PAWN          (12)
  109. #  define            DEVELOPMENT_LOSING_CASTLE          (20)
  110. #  define              DEVELOPMENT_NOT_CASTLED          (20)
  111. #  define              DEVELOPMENT_QUEEN_EARLY          (12)
  112.  
  113. #  define                         TRADE_PIECES           (6)
  114. #  define                          TRADE_PAWNS          (10)
  115.  
  116. #endif
  117.