diff --git a/card_game/src/lib.rs b/card_game/src/lib.rs index 76eaf4c..666cf12 100644 --- a/card_game/src/lib.rs +++ b/card_game/src/lib.rs @@ -437,7 +437,7 @@ where type Stats = SessionStats; type Config = SessionConfig; type Instruction = SessionInstruction; - fn score(&self, stats: &Self::Stats, config: &Self::Config) -> i32 { + fn score(&self, stats: &Self::Stats, config: &Self::Config) -> Self::Score { self.state.score(&stats.inner, &config.inner) + stats.undos as i32 * config.undo_penalty } fn possible_instructions(