X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.h;h=e5b5f5aa4a85dd7a2aa2c26222d8c6f2822b477b;hp=510784e593e8e1d5ab811d98177f295c6ada56e5;hb=a9e55d43262d11a916bdfa68cd1de0174d884cd3;hpb=3ed603cd64624d27de3f3f6e8f4e5dfccaaed420 diff --git a/src/position.h b/src/position.h index 510784e5..e5b5f5aa 100644 --- a/src/position.h +++ b/src/position.h @@ -38,7 +38,6 @@ #include "direction.h" #include "move.h" #include "piece.h" -#include "phase.h" #include "square.h" #include "value.h" @@ -61,7 +60,7 @@ const int MaxGameLength = 220; //// Types //// -/// Castle rights, encoded as bit fields: +/// Castle rights, encoded as bit fields enum CastleRights { NO_CASTLES = 0, @@ -72,6 +71,12 @@ enum CastleRights { ALL_CASTLES = 15 }; +/// Game phase +enum Phase { + PHASE_ENDGAME = 0, + PHASE_MIDGAME = 128 +}; + /// The StateInfo struct stores information we need to restore a Position /// object to its previous state when we retract a move. Whenever a move