quick little refactoring

This commit is contained in:
Karma Riuk
2025-02-06 18:34:54 +01:00
parent 77f77ac04e
commit b8627ace14
4 changed files with 11 additions and 11 deletions

View File

@ -5,7 +5,7 @@
std::vector<Move> pawn_moves(const Board& b, const Coords xy) {
std::vector<Move> ret{};
int8_t my_colour = b.colour_at(xy);
Colour my_colour = b.colour_at(xy);
// -- Capture to the left
if (xy.x > 0) {

View File

@ -9,7 +9,7 @@ keep_only_blocking(const std::vector<Move> candidates, const Board& board) {
if (candidates.size() == 0)
return {};
int8_t my_colour = board.colour_at(candidates[0].source_square);
Colour my_colour = board.colour_at(candidates[0].source_square);
std::vector<Move> ret;
for (Move move : candidates) {
Board board_after_move = board.make_move(move);