From 839b9f6c0866015369cd76e2407702464c0ee870 Mon Sep 17 00:00:00 2001 From: markmental Date: Tue, 10 Feb 2026 19:11:28 -0500 Subject: [PATCH] National Team Expansion (50+ Countries + PRC China) --- DEVLOG.md | 8 +++ src/data.rs | 159 +++++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 166 insertions(+), 1 deletion(-) diff --git a/DEVLOG.md b/DEVLOG.md index 7f5a802..66ab8c6 100644 --- a/DEVLOG.md +++ b/DEVLOG.md @@ -78,3 +78,11 @@ - Added modal scrolling controls (`j/k` or up/down) and close controls (`Esc` or `q`). - Simplified detail view to focus on scoreboard, logs, and instance info. - Added detail-panel hint bar to direct users to the new dedicated modals. + +## 2026-02-10 - National team expansion + +### Scope completed +- Expanded team database to include 50+ national teams in addition to existing clubs. +- Added national-team flag mappings, including `PRC China`. +- Added tactic/formation profile mappings for the new national teams. +- Verified with `list` and deterministic `quick` simulation using national teams. diff --git a/src/data.rs b/src/data.rs index 1dcd7b8..258d6d4 100644 --- a/src/data.rs +++ b/src/data.rs @@ -59,7 +59,7 @@ pub const TACTICS: [Tactic; 4] = [ }, ]; -pub const TEAMS: [&str; 29] = [ +pub const TEAMS: [&str; 85] = [ "Kashima Antlers", "Urawa Red Diamonds", "Gamba Osaka", @@ -89,6 +89,62 @@ pub const TEAMS: [&str; 29] = [ "Benfica", "Porto", "Celtic", + "England", + "France", + "Spain", + "Germany", + "Italy", + "Portugal", + "Netherlands", + "Belgium", + "Croatia", + "Denmark", + "Switzerland", + "Austria", + "Sweden", + "Norway", + "Poland", + "Serbia", + "Turkey", + "Ukraine", + "Czech Republic", + "Scotland", + "Argentina", + "Brazil", + "Uruguay", + "Colombia", + "Chile", + "Peru", + "Ecuador", + "Paraguay", + "Bolivia", + "Venezuela", + "United States", + "Mexico", + "Canada", + "Costa Rica", + "Panama", + "Jamaica", + "Honduras", + "Japan", + "South Korea", + "Australia", + "Iran", + "Saudi Arabia", + "Qatar", + "Iraq", + "United Arab Emirates", + "PRC China", + "Morocco", + "Senegal", + "Nigeria", + "Egypt", + "Algeria", + "Tunisia", + "Ghana", + "Cameroon", + "Ivory Coast", + "South Africa", ]; pub fn team_flag(team: &str) -> &'static str { @@ -113,6 +169,61 @@ pub fn team_flag(team: &str) -> &'static str { "Juventus" | "Inter" | "AC Milan" => "🇮🇹", "Ajax" => "🇳🇱", "Benfica" | "Porto" => "🇵🇹", + "England" | "Scotland" => "🇬🇧", + "France" => "🇫🇷", + "Spain" => "🇪🇸", + "Germany" => "🇩🇪", + "Italy" => "🇮🇹", + "Portugal" => "🇵🇹", + "Netherlands" => "🇳🇱", + "Belgium" => "🇧🇪", + "Croatia" => "🇭🇷", + "Denmark" => "🇩🇰", + "Switzerland" => "🇨🇭", + "Austria" => "🇦🇹", + "Sweden" => "🇸🇪", + "Norway" => "🇳🇴", + "Poland" => "🇵🇱", + "Serbia" => "🇷🇸", + "Turkey" => "🇹🇷", + "Ukraine" => "🇺🇦", + "Czech Republic" => "🇨🇿", + "Argentina" => "🇦🇷", + "Brazil" => "🇧🇷", + "Uruguay" => "🇺🇾", + "Colombia" => "🇨🇴", + "Chile" => "🇨🇱", + "Peru" => "🇵🇪", + "Ecuador" => "🇪🇨", + "Paraguay" => "🇵🇾", + "Bolivia" => "🇧🇴", + "Venezuela" => "🇻🇪", + "United States" => "🇺🇸", + "Mexico" => "🇲🇽", + "Canada" => "🇨🇦", + "Costa Rica" => "🇨🇷", + "Panama" => "🇵🇦", + "Jamaica" => "🇯🇲", + "Honduras" => "🇭🇳", + "Japan" => "🇯🇵", + "South Korea" => "🇰🇷", + "Australia" => "🇦🇺", + "Iran" => "🇮🇷", + "Saudi Arabia" => "🇸🇦", + "Qatar" => "🇶🇦", + "Iraq" => "🇮🇶", + "United Arab Emirates" => "🇦🇪", + "PRC China" => "🇨🇳", + "Morocco" => "🇲🇦", + "Senegal" => "🇸🇳", + "Nigeria" => "🇳🇬", + "Egypt" => "🇪🇬", + "Algeria" => "🇩🇿", + "Tunisia" => "🇹🇳", + "Ghana" => "🇬🇭", + "Cameroon" => "🇨🇲", + "Ivory Coast" => "🇨🇮", + "South Africa" => "🇿🇦", _ => "🏳️", } } @@ -247,6 +358,52 @@ pub fn profile_for(team: &str) -> TeamProfile { formation: "4-3-3", tactic: "counter", }, + "Spain" | "Netherlands" | "Portugal" | "Japan" | "PRC China" => TeamProfile { + formation: "4-3-3", + tactic: "possession", + }, + "England" | "Germany" | "France" | "Brazil" | "Argentina" | "Belgium" | "United States" + | "South Korea" | "Morocco" | "Nigeria" => TeamProfile { + formation: "4-2-3-1", + tactic: "high_press", + }, + "Italy" | "Croatia" | "Denmark" | "Switzerland" | "Uruguay" | "Mexico" | "Canada" + | "Iran" | "Saudi Arabia" | "Senegal" | "Algeria" | "Tunisia" => TeamProfile { + formation: "4-4-2", + tactic: "counter", + }, + "Austria" + | "Sweden" + | "Norway" + | "Poland" + | "Serbia" + | "Turkey" + | "Ukraine" + | "Czech Republic" + | "Scotland" + | "Colombia" + | "Chile" + | "Peru" + | "Ecuador" + | "Paraguay" + | "Bolivia" + | "Venezuela" + | "Costa Rica" + | "Panama" + | "Jamaica" + | "Honduras" + | "Australia" + | "Qatar" + | "Iraq" + | "United Arab Emirates" + | "Egypt" + | "Ghana" + | "Cameroon" + | "Ivory Coast" + | "South Africa" => TeamProfile { + formation: "4-2-3-1", + tactic: "counter", + }, _ => TeamProfile { formation: "4-4-2", tactic: "counter",