X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.cpp;h=f0d15d734aa0c2625dacaa3210c9480835911fc8;hp=f6ad622f2017df066971264a3bd7887e6ef968e9;hb=4397e6c03e72881a0a477c61c7d17c040c6fdb92;hpb=4f14bd50326d058fe14ae1dd51c57fac99b74153 diff --git a/src/position.cpp b/src/position.cpp index f6ad622f..f0d15d73 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -456,18 +456,18 @@ void Position::find_checkers() { } -/// Position::move_is_legal() tests whether a pseudo-legal move is legal. +/// Position::pl_move_is_legal() tests whether a pseudo-legal move is legal. /// There are two versions of this function: One which takes only a /// move as input, and one which takes a move and a bitboard of pinned /// pieces. The latter function is faster, and should always be preferred /// when a pinned piece bitboard has already been computed. -bool Position::move_is_legal(Move m) const { +bool Position::pl_move_is_legal(Move m) const { - return move_is_legal(m, pinned_pieces(side_to_move())); + return pl_move_is_legal(m, pinned_pieces(side_to_move())); } -bool Position::move_is_legal(Move m, Bitboard pinned) const { +bool Position::pl_move_is_legal(Move m, Bitboard pinned) const { Color us, them; Square ksq, from;