Remove external undo tracking #84
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
apply_undo_score in solitaire_core/src/klondike_adapter.rs is vestigial and should be removed. The penalty is configured in the upstream KlondikeConfig and tracked in SessionStats. No external tracking required.
Resolved in commit
372b642(branch refactor/strip-card_game-redundancies).KlondikeAdapter::apply_undo_scoreand the wholescore_for_*helper family are removed. The -15 undo penalty is now configured asSessionConfig::undo_penalty: -15and applied by the upstream score formula (undos * undo_penalty), andSessionStats::undos()tracks the count — so no external undo tracking remains.GameState::undo()is now just the mode guards +session.undo().Note: this required migrating Ferrous fully onto upstream scoring. The old adapter applied the penalty to a per-step-clamped, path-dependent score; upstream applies it as a linear correction term. The two are not numerically identical, so this is a deliberate scoring-behaviour change, not a pure no-op cleanup.