Remove debug prints.
This commit is contained in:
parent
a883474609
commit
500b47b0eb
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user