diff options
Diffstat (limited to 'src/strategy/minimax.rs')
-rw-r--r-- | src/strategy/minimax.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strategy/minimax.rs b/src/strategy/minimax.rs index 60a66b1..ce5e574 100644 --- a/src/strategy/minimax.rs +++ b/src/strategy/minimax.rs @@ -238,7 +238,7 @@ fn score(state: &GameBoard) -> Score { _ => 0., }; - let time_to_end = MAX_ROUNDS as f32 - state.round as f32; + let time_to_end = MAX_ROUNDS as f32 - state.round as f32 + 1.; let snowballs = state.players[0].snowballs() as f32 - state.players[1].snowballs() as f32; let bombs = state.players[0].bombs() as f32 - state.players[1].bombs() as f32; |