mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 08:37:44 +00:00
Better naming borrowed from Critter
In line with http://chessprogramming.wikispaces.com conventions. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
+2
-2
@@ -204,7 +204,7 @@ public:
|
||||
|
||||
// Position consistency check, for debugging
|
||||
bool is_ok(int* failedStep = NULL) const;
|
||||
void flip();
|
||||
void flip_me();
|
||||
|
||||
// Global initialization
|
||||
static void init();
|
||||
@@ -380,7 +380,7 @@ inline bool Position::in_check() const {
|
||||
}
|
||||
|
||||
inline bool Position::pawn_is_passed(Color c, Square s) const {
|
||||
return !(pieces(PAWN, opposite_color(c)) & passed_pawn_mask(c, s));
|
||||
return !(pieces(PAWN, flip(c)) & passed_pawn_mask(c, s));
|
||||
}
|
||||
|
||||
inline Key Position::get_key() const {
|
||||
|
||||
Reference in New Issue
Block a user