Commit graph

2 commits

Author SHA1 Message Date
jedarden
e5f5de4e64 feat(cmd): add acb-maps-loader to load map library into database
- New cmd/acb-maps-loader reads all 200 map JSON files from maps/ directory
- Transforms map files into database schema format for maps table
- Supports INSERT with ON CONFLICT for idempotent updates
- Includes tests verifying all 200 maps can be parsed
- Updates Makefile with acb-maps-loader and load-maps targets

This addresses the plan-gap where maps/ had 200 maps but only 12 were in the database.
The index-builder generates maps/index.json from the database, so loading the full
map library enables complete map index generation.

Closes: bf-4bn3

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-25 14:50:38 -04:00
jedarden
b6b4d27267 feat(maps): add seed map library for initial deployment (plan §3.8)
- Create maps/ directory with 50 maps per player count (2, 3, 4, 6)
- Each map includes metadata: id, players, dimensions, wall density
- Generate maps using acb-mapgen with rotational symmetry
- Add scripts/generate-map-library.sh for regeneration
- Add Makefile with map-library target

Plan §3.8 specifies: "Pre-generated pool of 50+ maps per player count"
Total: 200 maps (50 each for 2, 3, 4, and 6 players)

Closes: bf-4mlv

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-25 08:42:12 -04:00