add turn info to game over event
This commit is contained in:
parent
075a08a78c
commit
c6abd47ef0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user