Skip to content

Add Procedural Puzzle Generation Module #46

Description

@Mkalbani

Description

Implement a generator module that procedurally generates logic puzzles at runtime based on configurable parameters — difficulty, category, and chain depth. This ensures the game never runs out of content and allows daily challenge modes with fresh puzzles every session. Generated puzzles are validated through the logic module before being offered to the player, guaranteeing they are solvable.

Acceptance Criteria

  • A generator module exists at src/generator/mod.rs
  • generate(difficulty, category, seed) returns a valid Puzzle struct
  • The seed parameter makes generation deterministic — same seed always produces the same puzzle
  • Generated puzzles pass through the logic evaluator to confirm they have at least one valid solution
  • Difficulty controls chain length and the number of red-herring conditions included
  • A --daily-challenge CLI flag generates and launches a seeded puzzle based on the current date
  • Generated puzzles can be exported to the standard puzzle JSON format for admin review and promotion
  • Unit tests cover determinism, solvability validation, difficulty scaling, and export format correctness

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