2025-02-02 18:17:37 +01:00
|
|
|
#pragma once
|
|
|
|
|
2025-02-02 17:13:55 +01:00
|
|
|
#include "castle_side.hpp"
|
2025-02-03 19:09:13 +01:00
|
|
|
#include "pieces/piece.hpp"
|
2025-02-02 17:13:55 +01:00
|
|
|
|
2025-02-02 16:49:24 +01:00
|
|
|
#include <cstdint>
|
|
|
|
|
|
|
|
struct Move {
|
2025-02-02 18:17:37 +01:00
|
|
|
int8_t source_square;
|
2025-02-02 16:49:24 +01:00
|
|
|
int8_t target_square;
|
2025-02-02 17:13:55 +01:00
|
|
|
|
|
|
|
bool is_capturing = false;
|
2025-02-02 21:28:31 +01:00
|
|
|
CastleSide castle_side = CastleSide::NeitherSide;
|
2025-02-02 18:17:37 +01:00
|
|
|
bool en_passant = false;
|
2025-02-03 19:09:13 +01:00
|
|
|
int8_t promoting_to = Piece::None;
|
2025-02-02 16:49:24 +01:00
|
|
|
};
|