take_from_foundation defaults to true but is documented as "Off by default" #13
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?
File
solitaire_core/src/game_state.rslines 149–152, 196Description
The field comment reads: "Off by default — non-standard house rule." However
new_with_modeinitialises it totrue, enabling foundation-to-tableau moves for every new game unconditionally.Additionally,
#[serde(default)]on abooldeserialises missing values asfalse, so games saved before this field existed load withtake_from_foundation = falsewhile fresh games havetrue. Loaded and new games silently behave differently.Fix
Change the initial value to
falseto match the documented intent, or change the doc comment and make the field opt-in explicitly.