diff --git a/card_game/src/lib.rs b/card_game/src/lib.rs index a089397..5981f2f 100644 --- a/card_game/src/lib.rs +++ b/card_game/src/lib.rs @@ -320,9 +320,11 @@ where self.state.state.possible_instructions() } pub fn process_instruction(&mut self, instruction: G::Instruction) { - self.state - .state - .process_instruction(&mut self.stats.inner_stats, &self.config, instruction) + self.state.process_instruction( + &mut self.stats, + &self.config, + SessionInstruction::InnerInstruction(instruction), + ) } pub fn is_win(&self) -> bool { self.state.is_win() @@ -367,8 +369,8 @@ where impl Game for SessionState where G: Clone, - G::Instruction: Clone, G::Stats: Default, + G::Instruction: Clone, { type Stats = SessionStats; type Config = G::Config;