X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftypes.h;h=d725c1367bf66504b41d79ec014688668502d96f;hp=4b7c7cec6f8fee84720eb931bbd503178ec1c420;hb=4840643fedbfc33d118cdc13c8435b062e3da99b;hpb=6fb0a1bc4050dd9b15e9c163c46c60f25c48137d diff --git a/src/types.h b/src/types.h index 4b7c7cec..d725c136 100644 --- a/src/types.h +++ b/src/types.h @@ -212,7 +212,8 @@ enum Depth { DEPTH_QS_NO_CHECKS = -1, DEPTH_QS_RECAPTURES = -5, - DEPTH_NONE = -6 + DEPTH_NONE = -6, + DEPTH_MAX = MAX_PLY }; enum Square { @@ -427,7 +428,7 @@ inline Move make(Square from, Square to, PieceType pt = KNIGHT) { } inline bool is_ok(Move m) { - return from_sq(m) != to_sq(m); // Catches also MOVE_NULL and MOVE_NONE + return from_sq(m) != to_sq(m); // Catch also MOVE_NULL and MOVE_NONE } #endif // #ifndef TYPES_H_INCLUDED