add turn info to game over event

This commit is contained in:
Max Känner 2024-10-03 06:39:32 +02:00
parent 075a08a78c
commit c6abd47ef0

View File

@ -73,8 +73,8 @@ pub fn start(game: &Game, _turn: i32, board: &Board, you: &Battlesnake) {
}
// end is called when your Battlesnake finishes a game
pub fn end(game: &Game, _turn: i32, _board: &Board, you: &Battlesnake) {
info!("GAME OVER");
pub fn end(game: &Game, turn: i32, _board: &Board, you: &Battlesnake) {
info!("GAME OVER after {turn} turns");
let Ok(mut game_infos) = GAME_INFOS.lock() else {
error!("unable to lock game infos");
return;