Remove debug prints.

This commit is contained in:
yukirij 2024-08-18 18:52:10 -07:00
parent a883474609
commit 500b47b0eb

View File

@ -74,7 +74,6 @@ impl Game {
// Check for target promotion.
let hex = Hex::from_tile(play.from);
if !target.promoted && Hex::is_back(hex.x, hex.y, target.player) {
println!("promotion {} {} ({}, {})", target.class, play.from, hex.x, hex.y);
target.promoted = true;
}
}
@ -103,7 +102,6 @@ impl Game {
// Check for piece promotion.
let hex = Hex::from_tile(play.to);
if !piece.promoted && Hex::is_back(hex.x, hex.y, piece.player) {
println!("promotion {} {} ({}, {})", piece.class, play.to, hex.x, hex.y);
if let Some(piece) = &mut self.board.pieces[pid as usize] {
piece.promoted = true;
}