Skip to content

Introduce a plugin trait for custom puzzle types #27

Description

@Mkalbani

Description

All puzzle types are currently hardcoded into the core crate, making it hard for contributors to add new puzzle categories without touching central match statements. Introduce a Puzzle trait so new puzzle kinds can be implemented and registered without modifying core dispatch logic.

Acceptance Criteria

  • Puzzle trait defined with generate(), check_answer(), hint(), and difficulty() methods
  • Existing puzzle types refactored to implement the trait
  • A PuzzleRegistry allows registering new puzzle implementations at startup
  • At least one example third-party-style puzzle added under examples/ showing registration
  • Existing puzzle behavior unchanged (verified by existing test suite passing)
  • CONTRIBUTING.md updated with a short guide on adding a new puzzle type

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