Skip to content

Commit

Permalink
Change turn display to match new turn system
Browse files Browse the repository at this point in the history
  • Loading branch information
outkine committed Mar 9, 2024
1 parent 1a12999 commit 7032b6a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ pub fn display_turn(turn: &CallbackInput) -> io::Result<()> {
let mut bold = ColorSpec::new();
bold.set_bold(true);
out.set_color(&bold)?;
writeln!(out, "\nAfter turn {}:", turn.state.turn)?;
if turn.state.turn == 1 {
writeln!(out, "Game start:")?;
} else {
writeln!(out, "\nAfter turn {}:", turn.state.turn - 1)?;
}
out.reset()?;

let grid_map = GridMap::from(&turn.state.objs);
Expand Down

0 comments on commit 7032b6a

Please sign in to comment.