diff --git a/src/ai/movegen.cpp b/src/ai/movegen.cpp index 0a9fe30b..03f19bfd 100644 --- a/src/ai/movegen.cpp +++ b/src/ai/movegen.cpp @@ -337,7 +337,7 @@ ExtMove *generateMoves(/* TODO: const */ Position *position, ExtMove *moveList) for (int i = Board::MOVE_PRIORITY_TABLE_SIZE - 1; i >= 0; i--) { oldSquare = static_cast(MoveList::movePriorityTable[i]); - if (!position->_selectPiece(oldSquare)) { + if (!position->select_piece(oldSquare)) { continue; } diff --git a/src/game/position.cpp b/src/game/position.cpp index 556427ec..59209960 100644 --- a/src/game/position.cpp +++ b/src/game/position.cpp @@ -472,7 +472,7 @@ out: return true; } -bool Position::_selectPiece(Square square) +bool Position::select_piece(Square square) { if (phase != PHASE_MOVING) return false; @@ -492,7 +492,7 @@ bool Position::_selectPiece(Square square) bool Position::_selectPiece(File file, Rank rank) { - return _selectPiece(Board::polarToSquare(file, rank)); + return select_piece(Board::polarToSquare(file, rank)); } bool Position::giveup(Color loser) @@ -602,7 +602,7 @@ bool Position::do_move(Move m) case MOVETYPE_REMOVE: return remove_piece(static_cast(-m)); case MOVETYPE_MOVE: - if (_selectPiece(from_sq(m))) { + if (select_piece(from_sq(m))) { return place_piece(to_sq(m)); } break; diff --git a/src/game/position.h b/src/game/position.h index c58c5e39..698da3b6 100644 --- a/src/game/position.h +++ b/src/game/position.h @@ -73,7 +73,7 @@ public: Position &operator=(const Position &) = delete; // Properties of moves - bool _selectPiece(Square s); + bool select_piece(Square s); bool place_piece(Square s, bool updateCmdlist = false); bool remove_piece(Square s, bool updateCmdlist = false);