From b40fc4bf56e7a1a8a7da3a9e4abb8cccd066bde4 Mon Sep 17 00:00:00 2001 From: Rhys Lloyd Date: Sun, 17 May 2026 09:41:55 -0700 Subject: [PATCH] fix undo --- card_game/src/lib.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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;