From c6abd47ef0d6cc958237068ecc4bba155b1000c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20K=C3=A4nner?= Date: Thu, 3 Oct 2024 06:39:32 +0200 Subject: [PATCH] add turn info to game over event --- battlesnake/src/logic.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/battlesnake/src/logic.rs b/battlesnake/src/logic.rs index bba154c..ca7c1f9 100644 --- a/battlesnake/src/logic.rs +++ b/battlesnake/src/logic.rs @@ -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;