This commit is contained in:
2026-05-17 09:41:55 -07:00
parent 97cc81987f
commit b40fc4bf56
+6 -4
View File
@@ -320,9 +320,11 @@ where
self.state.state.possible_instructions() self.state.state.possible_instructions()
} }
pub fn process_instruction(&mut self, instruction: G::Instruction) { pub fn process_instruction(&mut self, instruction: G::Instruction) {
self.state self.state.process_instruction(
.state &mut self.stats,
.process_instruction(&mut self.stats.inner_stats, &self.config, instruction) &self.config,
SessionInstruction::InnerInstruction(instruction),
)
} }
pub fn is_win(&self) -> bool { pub fn is_win(&self) -> bool {
self.state.is_win() self.state.is_win()
@@ -367,8 +369,8 @@ where
impl<G: Game> Game for SessionState<G> impl<G: Game> Game for SessionState<G>
where where
G: Clone, G: Clone,
G::Instruction: Clone,
G::Stats: Default, G::Stats: Default,
G::Instruction: Clone,
{ {
type Stats = SessionStats<G::Stats>; type Stats = SessionStats<G::Stats>;
type Config = G::Config; type Config = G::Config;