diff --git a/client_cli/src/game_runner.rs b/client_cli/src/game_runner.rs index 08e918d..2d9dbef 100644 --- a/client_cli/src/game_runner.rs +++ b/client_cli/src/game_runner.rs @@ -1,4 +1,4 @@ -use bot::{Bot, BotStrategy, DefaultStrategy}; +use bot::{Bot, BotStrategy}; use store::{CheckerMove, DiceRoller, GameEvent, GameState, PlayerId, TurnStage}; // Application Game diff --git a/store/src/game.rs b/store/src/game.rs index ffb8afc..b0dfd0f 100644 --- a/store/src/game.rs +++ b/store/src/game.rs @@ -618,13 +618,19 @@ pub enum GameEvent { impl GameEvent { pub fn player_id(&self) -> Option { match self { - Self::PlayerJoined { player_id, name } => Some(*player_id), + Self::PlayerJoined { player_id, name: _ } => Some(*player_id), Self::PlayerDisconnected { player_id } => Some(*player_id), Self::Roll { player_id } => Some(*player_id), - Self::RollResult { player_id, dice } => Some(*player_id), - Self::Mark { player_id, points } => Some(*player_id), + Self::RollResult { player_id, dice: _ } => Some(*player_id), + Self::Mark { + player_id, + points: _, + } => Some(*player_id), Self::Go { player_id } => Some(*player_id), - Self::Move { player_id, moves } => Some(*player_id), + Self::Move { + player_id, + moves: _, + } => Some(*player_id), _ => None, } }