fix simulation

This commit is contained in:
2026-07-01 20:04:55 -05:00
parent 202d4460e9
commit 2c435472f5

View File

@@ -26,7 +26,7 @@ export function saveOverrides(overrides: SimOverrides): void {
// Plausibles Standardergebnis aus Polymarket-3-Wege-Wahrscheinlichkeiten. // Plausibles Standardergebnis aus Polymarket-3-Wege-Wahrscheinlichkeiten.
// //
// Schwellen (zentral): // Schwellen (zentral):
// Draw am höchsten ODER max(home,away) < 0.40 → 0:0 (Gruppe) / 1:0 Heim (K.o.) // Draw am höchsten ODER max(home,away) < 0.40 → 0:0 (Gruppe) / Favorit 1:0 (K.o.)
// Favorit 0.400.60 → 1:0 // Favorit 0.400.60 → 1:0
// Favorit 0.600.78 → 2:0 // Favorit 0.600.78 → 2:0
// Favorit > 0.78 → 3:0 // Favorit > 0.78 → 3:0
@@ -48,7 +48,11 @@ export function defaultScore(match: Match): { homeScore: number; awayScore: numb
if (isDraw || maxFA < 0.40) { if (isDraw || maxFA < 0.40) {
if (isGroup) return { homeScore: 0, awayScore: 0 }; if (isGroup) return { homeScore: 0, awayScore: 0 };
return { homeScore: 1, awayScore: 0 }; // K.o.: knapp Heim (kein Remis) // K.o.: kein Remis möglich → der wahrscheinlichere von Heim/Auswärts gewinnt knapp,
// Draw wird ignoriert (kein gültiges K.o.-Ergebnis).
return prob.home >= prob.away
? { homeScore: 1, awayScore: 0 }
: { homeScore: 0, awayScore: 1 };
} }
// Favorit bestimmen // Favorit bestimmen