Skip to content

Commit

Permalink
refactor: remove this
Browse files Browse the repository at this point in the history
  • Loading branch information
Disservin committed Dec 9, 2023
1 parent 8710729 commit a4d2bf5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/chess.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1912,7 +1912,7 @@ inline void Board::removePiece(Piece piece, Square sq) {

inline void Board::makeMove(const Move &move) {
// Validate side to move
assert((at(move.from()) < Piece::BLACKPAWN) == (this->side_to_move_ == Color::WHITE));
assert((at(move.from()) < Piece::BLACKPAWN) == (side_to_move_ == Color::WHITE));
const auto capture = at(move.to()) != Piece::NONE && move.typeOf() != Move::CASTLING;
const auto captured = at(move.to());
const auto pt = at<PieceType>(move.from());
Expand Down Expand Up @@ -3501,7 +3501,7 @@ class StreamParser {
StreamParser(std::istream &stream) : stream_buffer(stream) {}

void readGames(Visitor &vis) {
this->visitor = &vis;
visitor = &vis;

while (true) {
const auto c = stream_buffer.get();
Expand Down

0 comments on commit a4d2bf5

Please # to comment.