Implement Stats #6
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user