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:
Marco Costalba
2010-06-13 02:26:43 +01:00
parent e9eea87341
commit a8b9c11f56
5 changed files with 59 additions and 64 deletions
+5 -8
View File
@@ -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)