mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 08:37:44 +00:00
Revert "Use ply counter in Position object"
Search ply and game ply are rwo different things ! Revert bogus commit. No functional change on bench, but it changes in real games when engine sends all the moves up to current one. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
+5
-8
@@ -100,7 +100,7 @@ enum Phase {
|
||||
|
||||
struct StateInfo {
|
||||
Key pawnKey, materialKey;
|
||||
int castleRights, rule50, ply, pliesFromNull;
|
||||
int castleRights, rule50, gamePly, pliesFromNull;
|
||||
Square epSquare;
|
||||
Score value;
|
||||
Value npMaterial[2];
|
||||
@@ -274,10 +274,11 @@ public:
|
||||
bool opposite_colored_bishops() const;
|
||||
bool has_pawn_on_7th(Color c) const;
|
||||
|
||||
// Game ply information
|
||||
// Current thread ID searching on the position
|
||||
int thread() const;
|
||||
int ply() const;
|
||||
void reset_ply();
|
||||
|
||||
// Reset the gamePly variable to 0
|
||||
void reset_game_ply();
|
||||
|
||||
// Position consistency check, for debugging
|
||||
bool is_ok(int* failedStep = NULL) const;
|
||||
@@ -566,8 +567,4 @@ inline int Position::thread() const {
|
||||
return threadID;
|
||||
}
|
||||
|
||||
inline int Position::ply() const {
|
||||
return st->ply;
|
||||
}
|
||||
|
||||
#endif // !defined(POSITION_H_INCLUDED)
|
||||
|
||||
Reference in New Issue
Block a user