feat: Phase 1 — core game loop complete

New endpoints:
- GET  /cards/:card_id       single card lookup
- POST /packs/buy            purchase pack with coins
- POST /objectives/claim     claim completed objective reward
- GET  /matches              match history (limit/mode query params)
- GET  /sbc/:sbc_id          single SBC lookup

Card pool expanded:
- Bronze: 11 → 30 cards (19 nations)
- Silver: 0 → 20 cards (20 nations)
- Rare Gold: 0 → 10 cards (10 nations)

SBC pool expanded:
- Added 5 new SBCs (tri_nations, silver_to_gold, league_loyalty,
  african_stars, gold_standard)

Infrastructure:
- SQLite WAL mode enabled on pool init
- Foreign key enforcement enabled

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
funman300
2026-06-25 15:25:30 -07:00
parent 1ffe0ffa9f
commit 34bce2ce75
14 changed files with 378 additions and 196 deletions
+30 -187
View File
@@ -1,189 +1,32 @@
[
{
"id": "card_bronze_001",
"name": "Lucas Santos",
"overall": 62,
"position": "ST",
"nation": "Brazil",
"league": "Serie B",
"club": "Santos FC",
"pace": 72,
"shooting": 61,
"passing": 52,
"dribbling": 63,
"defending": 30,
"physical": 64,
"rarity": "bronze",
"image_path": null
},
{
"id": "card_bronze_002",
"name": "Marco Ferri",
"overall": 60,
"position": "CM",
"nation": "Italy",
"league": "Serie C",
"club": "Modena FC",
"pace": 58,
"shooting": 52,
"passing": 63,
"dribbling": 59,
"defending": 55,
"physical": 60,
"rarity": "bronze",
"image_path": null
},
{
"id": "card_bronze_003",
"name": "Eko Jabari",
"overall": 61,
"position": "CB",
"nation": "Nigeria",
"league": "NPFL",
"club": "Kano Pillars",
"pace": 60,
"shooting": 25,
"passing": 48,
"dribbling": 42,
"defending": 64,
"physical": 70,
"rarity": "bronze",
"image_path": null
},
{
"id": "card_bronze_004",
"name": "Pieter Van Dijk",
"overall": 63,
"position": "LB",
"nation": "Netherlands",
"league": "Eerste Divisie",
"club": "FC Volendam",
"pace": 65,
"shooting": 38,
"passing": 60,
"dribbling": 61,
"defending": 65,
"physical": 62,
"rarity": "bronze",
"image_path": null
},
{
"id": "card_bronze_005",
"name": "Tomás Ruiz",
"overall": 62,
"position": "GK",
"nation": "Spain",
"league": "Segunda B",
"club": "SD Compostela",
"pace": 40,
"shooting": 10,
"passing": 35,
"dribbling": 20,
"defending": 62,
"physical": 58,
"rarity": "bronze",
"image_path": null
},
{
"id": "card_bronze_006",
"name": "James Okafor",
"overall": 60,
"position": "RM",
"nation": "Ghana",
"league": "Ghana Premier League",
"club": "Asante Kotoko",
"pace": 75,
"shooting": 55,
"passing": 58,
"dribbling": 66,
"defending": 32,
"physical": 55,
"rarity": "bronze",
"image_path": null
},
{
"id": "card_bronze_007",
"name": "Stefan Kovac",
"overall": 61,
"position": "CDM",
"nation": "Serbia",
"league": "Super liga Srbije",
"club": "FK Partizan",
"pace": 55,
"shooting": 50,
"passing": 60,
"dribbling": 56,
"defending": 63,
"physical": 68,
"rarity": "bronze",
"image_path": null
},
{
"id": "card_bronze_008",
"name": "Hiroshi Tanaka",
"overall": 63,
"position": "CAM",
"nation": "Japan",
"league": "J2 League",
"club": "Gamba Osaka",
"pace": 68,
"shooting": 60,
"passing": 66,
"dribbling": 70,
"defending": 38,
"physical": 52,
"rarity": "bronze",
"image_path": null
},
{
"id": "card_bronze_009",
"name": "Aleksei Morozov",
"overall": 60,
"position": "RB",
"nation": "Russia",
"league": "FNL",
"club": "Torpedo Moscow",
"pace": 62,
"shooting": 40,
"passing": 56,
"dribbling": 58,
"defending": 62,
"physical": 60,
"rarity": "bronze",
"image_path": null
},
{
"id": "card_bronze_010",
"name": "Kwame Asante",
"overall": 62,
"position": "LM",
"nation": "Ghana",
"league": "Ghana Premier League",
"club": "Hearts of Oak",
"pace": 73,
"shooting": 58,
"passing": 60,
"dribbling": 65,
"defending": 35,
"physical": 58,
"rarity": "bronze",
"image_path": null
},
{
"id": "card_bronze_011",
"name": "Ivan Petrov",
"overall": 61,
"position": "CB",
"nation": "Bulgaria",
"league": "First League",
"club": "CSKA Sofia",
"pace": 58,
"shooting": 22,
"passing": 50,
"dribbling": 44,
"defending": 63,
"physical": 67,
"rarity": "bronze",
"image_path": null
}
{ "id": "card_bronze_001", "name": "Lucas Santos", "overall": 62, "position": "ST", "nation": "Brazil", "league": "Serie B", "club": "Santos FC", "pace": 72, "shooting": 61, "passing": 52, "dribbling": 63, "defending": 30, "physical": 64, "rarity": "bronze", "image_path": null },
{ "id": "card_bronze_002", "name": "Marco Ferri", "overall": 60, "position": "CM", "nation": "Italy", "league": "Serie C", "club": "Modena FC", "pace": 58, "shooting": 52, "passing": 63, "dribbling": 59, "defending": 55, "physical": 60, "rarity": "bronze", "image_path": null },
{ "id": "card_bronze_003", "name": "Eko Jabari", "overall": 61, "position": "CB", "nation": "Nigeria", "league": "NPFL", "club": "Kano Pillars", "pace": 60, "shooting": 25, "passing": 48, "dribbling": 42, "defending": 64, "physical": 70, "rarity": "bronze", "image_path": null },
{ "id": "card_bronze_004", "name": "Pieter Van Dijk", "overall": 63, "position": "LB", "nation": "Netherlands", "league": "Eerste Divisie", "club": "FC Volendam", "pace": 65, "shooting": 38, "passing": 60, "dribbling": 61, "defending": 65, "physical": 62, "rarity": "bronze", "image_path": null },
{ "id": "card_bronze_005", "name": "Tomás Ruiz", "overall": 62, "position": "GK", "nation": "Spain", "league": "Segunda B", "club": "SD Compostela", "pace": 40, "shooting": 10, "passing": 35, "dribbling": 20, "defending": 62, "physical": 58, "rarity": "bronze", "image_path": null },
{ "id": "card_bronze_006", "name": "James Okafor", "overall": 60, "position": "RM", "nation": "Ghana", "league": "Ghana Premier League", "club": "Asante Kotoko", "pace": 75, "shooting": 55, "passing": 58, "dribbling": 66, "defending": 32, "physical": 55, "rarity": "bronze", "image_path": null },
{ "id": "card_bronze_007", "name": "Stefan Kovac", "overall": 61, "position": "CDM", "nation": "Serbia", "league": "Super liga Srbije", "club": "FK Partizan", "pace": 55, "shooting": 50, "passing": 60, "dribbling": 56, "defending": 63, "physical": 68, "rarity": "bronze", "image_path": null },
{ "id": "card_bronze_008", "name": "Hiroshi Tanaka", "overall": 63, "position": "CAM", "nation": "Japan", "league": "J2 League", "club": "Gamba Osaka", "pace": 68, "shooting": 60, "passing": 66, "dribbling": 70, "defending": 38, "physical": 52, "rarity": "bronze", "image_path": null },
{ "id": "card_bronze_009", "name": "Aleksei Morozov", "overall": 60, "position": "RB", "nation": "Russia", "league": "FNL", "club": "Torpedo Moscow", "pace": 62, "shooting": 40, "passing": 56, "dribbling": 58, "defending": 62, "physical": 60, "rarity": "bronze", "image_path": null },
{ "id": "card_bronze_010", "name": "Kwame Asante", "overall": 62, "position": "LM", "nation": "Ghana", "league": "Ghana Premier League", "club": "Hearts of Oak", "pace": 73, "shooting": 58, "passing": 60, "dribbling": 65, "defending": 35, "physical": 58, "rarity": "bronze", "image_path": null },
{ "id": "card_bronze_011", "name": "Ivan Petrov", "overall": 61, "position": "CB", "nation": "Bulgaria", "league": "First League", "club": "CSKA Sofia", "pace": 58, "shooting": 22, "passing": 50, "dribbling": 44, "defending": 63, "physical": 67, "rarity": "bronze", "image_path": null },
{ "id": "card_bronze_012", "name": "Diego Herrera", "overall": 61, "position": "LW", "nation": "Mexico", "league": "Liga de Expansion", "club": "Atletico San Luis B", "pace": 74, "shooting": 57, "passing": 56, "dribbling": 67, "defending": 28, "physical": 52, "rarity": "bronze", "image_path": null },
{ "id": "card_bronze_013", "name": "Pawel Wisniewski", "overall": 62, "position": "CB", "nation": "Poland", "league": "I Liga", "club": "Wisla Plock", "pace": 57, "shooting": 24, "passing": 52, "dribbling": 46, "defending": 64, "physical": 69, "rarity": "bronze", "image_path": null },
{ "id": "card_bronze_014", "name": "Youssef Belkadi", "overall": 61, "position": "CM", "nation": "Morocco", "league": "Botola Pro 2", "club": "AS FAR", "pace": 63, "shooting": 54, "passing": 62, "dribbling": 61, "defending": 56, "physical": 58, "rarity": "bronze", "image_path": null },
{ "id": "card_bronze_015", "name": "Emre Yilmaz", "overall": 63, "position": "ST", "nation": "Turkey", "league": "TFF First League", "club": "Erzurumspor", "pace": 70, "shooting": 63, "passing": 53, "dribbling": 61, "defending": 28, "physical": 66, "rarity": "bronze", "image_path": null },
{ "id": "card_bronze_016", "name": "Mattias Holm", "overall": 60, "position": "GK", "nation": "Sweden", "league": "Superettan", "club": "Vasalunds IF", "pace": 38, "shooting": 9, "passing": 40, "dribbling": 22, "defending": 61, "physical": 62, "rarity": "bronze", "image_path": null },
{ "id": "card_bronze_017", "name": "Rui Teixeira", "overall": 62, "position": "RB", "nation": "Portugal", "league": "Liga Portugal 2", "club": "CD Mafra", "pace": 66, "shooting": 41, "passing": 59, "dribbling": 62, "defending": 64, "physical": 60, "rarity": "bronze", "image_path": null },
{ "id": "card_bronze_018", "name": "Sung-Jin Park", "overall": 63, "position": "CDM", "nation": "South Korea", "league": "K League 2", "club": "Busan IPark", "pace": 60, "shooting": 48, "passing": 62, "dribbling": 59, "defending": 65, "physical": 64, "rarity": "bronze", "image_path": null },
{ "id": "card_bronze_019", "name": "Wei Zhao", "overall": 60, "position": "CAM", "nation": "China", "league": "China League One", "club": "Wuhan Three Towns B", "pace": 67, "shooting": 57, "passing": 61, "dribbling": 63, "defending": 36, "physical": 50, "rarity": "bronze", "image_path": null },
{ "id": "card_bronze_020", "name": "Sebastián Mora", "overall": 61, "position": "LB", "nation": "Chile", "league": "Primera B", "club": "CD Magallanes", "pace": 64, "shooting": 36, "passing": 58, "dribbling": 58, "defending": 63, "physical": 59, "rarity": "bronze", "image_path": null },
{ "id": "card_bronze_021", "name": "Camilo Rios", "overall": 62, "position": "RW", "nation": "Colombia", "league": "Primera B Colombia", "club": "Deportes Quindio", "pace": 76, "shooting": 59, "passing": 55, "dribbling": 68, "defending": 25, "physical": 53, "rarity": "bronze", "image_path": null },
{ "id": "card_bronze_022", "name": "Ahmed Sayed", "overall": 61, "position": "CF", "nation": "Egypt", "league": "Egyptian Second Division", "club": "Ceramica Cleopatra", "pace": 68, "shooting": 62, "passing": 55, "dribbling": 64, "defending": 27, "physical": 60, "rarity": "bronze", "image_path": null },
{ "id": "card_bronze_023", "name": "Connor Walsh", "overall": 60, "position": "CM", "nation": "Australia", "league": "NPL Queensland", "club": "Gold Coast Knights", "pace": 62, "shooting": 53, "passing": 61, "dribbling": 58, "defending": 54, "physical": 59, "rarity": "bronze", "image_path": null },
{ "id": "card_bronze_024", "name": "Jordi Claes", "overall": 63, "position": "CDM", "nation": "Belgium", "league": "Eerste Nationale", "club": "Lommel SK", "pace": 58, "shooting": 47, "passing": 64, "dribbling": 58, "defending": 66, "physical": 65, "rarity": "bronze", "image_path": null },
{ "id": "card_bronze_025", "name": "Matej Horvat", "overall": 62, "position": "CB", "nation": "Croatia", "league": "Prva NL", "club": "NK Istra 1961", "pace": 59, "shooting": 23, "passing": 51, "dribbling": 45, "defending": 64, "physical": 68, "rarity": "bronze", "image_path": null },
{ "id": "card_bronze_026", "name": "Arash Karimi", "overall": 60, "position": "ST", "nation": "Iran", "league": "Azadegan League", "club": "Shahin Bushehr", "pace": 66, "shooting": 61, "passing": 49, "dribbling": 60, "defending": 24, "physical": 63, "rarity": "bronze", "image_path": null },
{ "id": "card_bronze_027", "name": "Nikos Papadopoulos", "overall": 61, "position": "LM", "nation": "Greece", "league": "Football League", "club": "PAS Giannina", "pace": 70, "shooting": 55, "passing": 59, "dribbling": 63, "defending": 33, "physical": 55, "rarity": "bronze", "image_path": null },
{ "id": "card_bronze_028", "name": "Andrei Ionescu", "overall": 62, "position": "RB", "nation": "Romania", "league": "Liga II", "club": "FC Arges", "pace": 65, "shooting": 39, "passing": 58, "dribbling": 60, "defending": 63, "physical": 61, "rarity": "bronze", "image_path": null },
{ "id": "card_bronze_029", "name": "Callum Fraser", "overall": 61, "position": "CM", "nation": "Scotland", "league": "Scottish Championship", "club": "Partick Thistle", "pace": 61, "shooting": 54, "passing": 63, "dribbling": 60, "defending": 57, "physical": 62, "rarity": "bronze", "image_path": null },
{ "id": "card_bronze_030", "name": "Seydou Coulibaly", "overall": 63, "position": "CDM", "nation": "Ivory Coast", "league": "MTN Ligue 1", "club": "ASEC Mimosas", "pace": 64, "shooting": 49, "passing": 62, "dribbling": 60, "defending": 67, "physical": 68, "rarity": "bronze", "image_path": null }
]