Skip to content

Title: Implement a global leaderboard with local caching #30

Description

@Mkalbani

Description

Add an optional leaderboard feature so players can compare scores. Since there's no backend yet, start with a local, file-based leaderboard, structured so a future networked backend can be swapped in without changing the calling API.

Acceptance Criteria

  • Leaderboard trait with a LocalFileLeaderboard implementation
  • Leaderboard entries store player name, puzzle type, score, and timestamp
  • --leaderboard CLI command displays top 10 entries, sortable by score or recency
  • Entries persist across sessions in a documented file location
  • Trait is designed so a future RemoteLeaderboard (e.g. HTTP-backed) can be added without breaking callers
  • Tests cover insertion, sorting, and top-N retrieval

Metadata

Metadata

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