mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 07:27:46 +00:00
Move Pieces[] out of global visibility
It is an helper array used only in position.cpp Also small code tidy up while there. No functional change. Closes #1106
This commit is contained in:
committed by
Joona Kiiski
parent
321a27fbe3
commit
25296547d0
+5
-4
@@ -56,11 +56,12 @@ struct Stack {
|
||||
struct RootMove {
|
||||
|
||||
explicit RootMove(Move m) : pv(1, m) {}
|
||||
|
||||
bool operator<(const RootMove& m) const {
|
||||
return m.score != score ? m.score < score : m.previousScore < previousScore; } // Descending sort
|
||||
bool operator==(const Move& m) const { return pv[0] == m; }
|
||||
bool extract_ponder_from_tt(Position& pos);
|
||||
bool operator==(const Move& m) const { return pv[0] == m; }
|
||||
bool operator<(const RootMove& m) const { // Sort in descending order
|
||||
return m.score != score ? m.score < score
|
||||
: m.previousScore < previousScore;
|
||||
}
|
||||
|
||||
Value score = -VALUE_INFINITE;
|
||||
Value previousScore = -VALUE_INFINITE;
|
||||
|
||||
Reference in New Issue
Block a user