This commit is contained in:
Henri Bourcereau 2025-01-09 21:27:24 +01:00
parent a3bcdb8912
commit ff5ff74282
5 changed files with 25 additions and 0 deletions

View file

@ -315,6 +315,7 @@ impl GameState {
if self.turn_stage != TurnStage::Move
&& self.turn_stage != TurnStage::HoldOrGoChoice
{
error!("bad stage {:?}", self.turn_stage);
return false;
}
let color = &self.players[player_id].color;
@ -326,6 +327,7 @@ impl GameState {
*moves
};
if !rules.moves_follow_rules(&moves) {
error!("rules not followed ");
return false;
}
}