mantimon-tcg/backend/data/raw/README.md
Cal Corum 934aa4c443 Add CardService and card data conversion pipeline
- Rename data/cards/ to data/raw/ for scraped data
- Add data/definitions/ as authoritative card data source
- Add convert_cards.py script to transform raw -> definitions
- Generate 378 card definitions (344 Pokemon, 24 Trainers, 10 Energy)
- Add CardService for loading and querying card definitions
  - In-memory indexes for fast lookups by type, set, pokemon_type
  - search() with multiple filter criteria
  - get_all_cards() for GameEngine integration
- Add SetInfo model for set metadata
- Update Attack model with damage_display field for variable damage
- Update CardDefinition with image_path, illustrator, flavor_text
- Add 45 tests (21 converter + 24 CardService)
- Update scraper output path to data/raw/

Card data is JSON-authoritative (no database) to support offline fork goal.
2026-01-27 14:16:40 -06:00

25 lines
728 B
Markdown

# Raw Scraped Data
Scraped from pokemon-zone.com. **Reference only - do not edit.**
Run `scripts/scrape_pokemon_pocket.py` to update this data.
For authoritative card definitions used by the game engine, see `../definitions/`.
## Structure
```
raw/
├── _index.json # Index of all scraped cards
├── a1/ # Genetic Apex set
│ └── *.json # Individual card files
└── a1a/ # Mythical Island set
└── *.json # Individual card files
```
## Notes
- This data is the raw output from the scraper
- Schema may differ from the game engine's CardDefinition model
- Use `scripts/convert_cards.py` to transform this data into definitions