Remove counts from GameState #87
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?
Remove the following fields from solitaire_core/src/klondike_adapter.rs GameState:
They are tracked in SessionStats and KlondikeStats and do not need to be duplicated.
Resolved in commit
372b642.The
score,undo_count, andrecycle_countfields are removed fromGameStateand replaced by derived accessor methods:recycle_count()->KlondikeStats::recycle_count()undo_count()->SessionStats::undos()score()-> upstreamSessionState::score(stats, config), floored at 0, suppressed in ZenTwo intentional semantic shifts:
recycle_countis now cumulative (upstream never decrements it on undo, unlike the old net count), andundo_countresets to 0 across a save/load cycle (only the forward instruction history is persisted). Save schema bumped v4 -> v5; the three counters are no longer serialised and are rebuilt by replay on load. Older v3/v4 saves still load (extra keys ignored).