| | | 1 | | namespace EHonda.KicktippAi.Core; |
| | | 2 | | |
| | | 3 | | /// <summary> |
| | | 4 | | /// Represents a match result from a team's recent history |
| | | 5 | | /// </summary> |
| | | 6 | | public record MatchResult( |
| | | 7 | | string Competition, // e.g., "KL-WM", "1.BL", "DFB" |
| | | 8 | | string HomeTeam, |
| | | 9 | | string AwayTeam, |
| | | 10 | | int? HomeGoals, // null if match hasn't been played yet |
| | | 11 | | int? AwayGoals, // null if match hasn't been played yet |
| | | 12 | | MatchOutcome Outcome, // Win, Draw, Loss from the perspective of the team we're tracking |
| | | 13 | | string? Annotation = null // e.g., "nach Elfmeterschießen", "nach Verlängerung" |
| | | 14 | | ); |
| | | 15 | | |
| | | 16 | | /// <summary> |
| | | 17 | | /// Represents the outcome of a match from a specific team's perspective |
| | | 18 | | /// </summary> |
| | | 19 | | public enum MatchOutcome |
| | | 20 | | { |
| | | 21 | | Win, |
| | | 22 | | Draw, |
| | | 23 | | Loss, |
| | | 24 | | Pending // For future matches |
| | | 25 | | } |
| | | 26 | | |
| | | 27 | | /// <summary> |
| | | 28 | | /// Represents a match with its recent history context for both teams |
| | | 29 | | /// </summary> |
| | 1 | 30 | | public record MatchWithHistory( |
| | 1 | 31 | | Match Match, |
| | 1 | 32 | | List<MatchResult> HomeTeamHistory, |
| | 1 | 33 | | List<MatchResult> AwayTeamHistory); |