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()
}
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<G: Game> Game for SessionState<G>
where
G: Clone,
G::Instruction: Clone,
G::Stats: Default,
G::Instruction: Clone,
{
type Stats = SessionStats<G::Stats>;
type Config = G::Config;