Skip to content

Title: Add a --seed flag for reproducible puzzle generation #34

Description

@Mkalbani

Description

Puzzle generation currently relies on non-deterministic RNG, making it impossible to reproduce a reported bug ("puzzle #4 generated an unsolvable board") or to write deterministic regression tests. Add seedable generation.

Acceptance Criteria

  • Puzzle generators accept an optional seed via rand::SeedableRng (e.g. StdRng::seed_from_u64)
  • --seed <u64> CLI flag reproduces an identical puzzle sequence across runs
  • Session summary/output includes the seed used, so players can share it for bug reports
  • Regression test added that generates a puzzle from a fixed seed and asserts an exact expected output
  • Documented in README.md under a "Reproducing a bug" section

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions