Update task task-037

This commit is contained in:
Jeff Emmett 2025-12-04 17:01:26 -08:00
parent 03d328ab3a
commit 0ddadb9358
1 changed files with 51 additions and 9 deletions

View File

@ -1,9 +1,10 @@
---
id: task-037
title: zkGPS Location Games and Discovery System
status: To Do
status: Done
assignee: []
created_date: '2025-12-05 00:49'
updated_date: '2025-12-05 01:01'
labels:
- feature
- open-mapping
@ -42,12 +43,53 @@ Integration points:
## Acceptance Criteria
<!-- AC:BEGIN -->
- [ ] #1 Discovery anchor types (physical, virtual, IoT)
- [ ] #2 Proximity proof verification for discoveries
- [ ] #3 Collectible item system with crafting
- [ ] #4 Mycelium growth between discovered locations
- [ ] #5 Team/group discovery mechanics
- [ ] #6 Hot/cold navigation hints
- [ ] #7 First-finder and timestamp proofs
- [ ] #8 IoT anchor protocol (NFC/BLE/QR)
- [x] #1 Discovery anchor types (physical, virtual, IoT)
- [x] #2 Proximity proof verification for discoveries
- [x] #3 Collectible item system with crafting
- [x] #4 Mycelium growth between discovered locations
- [x] #5 Team/group discovery mechanics
- [x] #6 Hot/cold navigation hints
- [x] #7 First-finder and timestamp proofs
- [x] #8 IoT anchor protocol (NFC/BLE/QR)
<!-- AC:END -->
## Implementation Notes
<!-- SECTION:NOTES:BEGIN -->
Implemented complete discovery game system with:
**types.ts** - Comprehensive type definitions:
- Discovery anchors (physical, NFC, BLE, QR, virtual, temporal, social)
- IoT requirements and social requirements
- Collectibles, crafting recipes, inventory slots
- Spores, planted spores, fruiting bodies
- Treasure hunts, scoring, leaderboards
- Hot/cold navigation hints
**anchors.ts** - Anchor management:
- Create anchors with zkGPS commitments
- Proximity-based discovery verification
- Hot/cold navigation hints
- Prerequisite and cooldown checking
- IoT and social requirement verification
**collectibles.ts** - Item and crafting system:
- ItemRegistry for item definitions
- InventoryManager with stacking
- CraftingManager with recipes
- Default spore, fragment, and artifact items
**spores.ts** - Mycelium integration:
- 7 spore types (explorer, connector, amplifier, guardian, harvester, temporal, social)
- Planting spores at discovered locations
- Hypha connections between nearby spores
- Fruiting body emergence when networks connect
- Growth simulation with nutrient decay
**hunts.ts** - Treasure hunt management:
- Create hunts with multiple anchors
- Sequential or free-form discovery
- Scoring with bonuses (first finder, time, sequence, group)
- Leaderboards and prizes
- Hunt templates (quick, standard, epic, team)
<!-- SECTION:NOTES:END -->