broken_source:
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(p):
    if p['minutes'] == 0:
        return 0
    pos = p['pos']
    pts = 2 if p['minutes'] >= 60 else 1
    pts += p['goals'] * {'GK': 6, 'DEF': 6, 'MID': 5, 'FWD': 4}[pos]
    pts += p['assists'] * 3
    if p['conceded'] == 0 and p['minutes'] >= 60:
        pts += {'GK': 4, 'DEF': 4, 'MID': 1, 'FWD': 0}[pos]
    if pos in ('GK', 'DEF'):
        pts -= p['conceded']
    if pos == 'GK':
        pts += p['saves'] // 3
    pts += p['pen_saved'] * 5 - p['pen_missed'] * 2 - p['own_goals'] * 2
    if p['red']:
        pts -= 3
    elif p['yellow']:
        pts -= 1
    return pts
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[('regression: conceded pair rounding',
   [{'assists': 1,
     'conceded': 2,
     'goals': 2,
     'minutes': 61,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': False}],
   16),
  ('partial repair probe: conceded pair rounding',
   [{'assists': 1,
     'conceded': 3,
     'goals': 1,
     'minutes': 1,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': False}],
   9),
  ('second regression',
   [{'assists': 1,
     'conceded': 2,
     'goals': 1,
     'minutes': 45,
     'own_goals': 1,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': True,
     'saves': 0,
     'yellow': False}],
   4),
  ('normal control 1',
   [{'assists': 2,
     'conceded': 0,
     'goals': 2,
     'minutes': 45,
     'own_goals': 1,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': False,
     'saves': 0,
     'yellow': False}],
   13),
  ('normal control 2',
   [{'assists': 2,
     'conceded': 0,
     'goals': 0,
     'minutes': 1,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': True,
     'saves': 0,
     'yellow': False}],
   4),
  ('normal control 3',
   [{'assists': 2,
     'conceded': 0,
     'goals': 0,
     'minutes': 59,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': False}],
   7),
  ('normal control 4',
   [{'assists': 1,
     'conceded': 4,
     'goals': 2,
     'minutes': 1,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': False}],
   12)],
 [('regression: conceded pair rounding',
   [{'assists': 0,
     'conceded': 1,
     'goals': 0,
     'minutes': 61,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 0,
     'yellow': False}],
   2),
  ('partial repair probe: conceded pair rounding',
   [{'assists': 1,
     'conceded': 3,
     'goals': 0,
     'minutes': 1,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': True,
     'saves': 0,
     'yellow': False}],
   0),
  ('second regression',
   [{'assists': 2,
     'conceded': 2,
     'goals': 0,
     'minutes': 1,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': False}],
   6),
  ('normal control 1',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 59,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': False}],
   1),
  ('normal control 2',
   [{'assists': 1,
     'conceded': 3,
     'goals': 2,
     'minutes': 45,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': True,
     'saves': 0,
     'yellow': False}],
   11),
  ('normal control 3',
   [{'assists': 0,
     'conceded': 3,
     'goals': 0,
     'minutes': 45,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': False,
     'saves': 0,
     'yellow': False}],
   1),
  ('normal control 4',
   [{'assists': 0,
     'conceded': 0,
     'goals': 1,
     'minutes': 46,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': False}],
   6)],
 [('regression: conceded pair rounding',
   [{'assists': 0,
     'conceded': 1,
     'goals': 0,
     'minutes': 59,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': False}],
   -1),
  ('partial repair probe: conceded pair rounding',
   [{'assists': 2,
     'conceded': 3,
     'goals': 1,
     'minutes': 45,
     'own_goals': 1,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 3,
     'yellow': False}],
   11),
  ('second regression',
   [{'assists': 2,
     'conceded': 1,
     'goals': 1,
     'minutes': 59,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': True}],
   12),
  ('normal control 1',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 1,
     'own_goals': 1,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': True,
     'saves': 0,
     'yellow': False}],
   -4),
  ('normal control 2',
   [{'assists': 1,
     'conceded': 3,
     'goals': 2,
     'minutes': 61,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': False}],
   15),
  ('normal control 3',
   [{'assists': 1,
     'conceded': 0,
     'goals': 0,
     'minutes': 1,
     'own_goals': 1,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 5,
     'yellow': False}],
   1),
  ('normal control 4',
   [{'assists': 0,
     'conceded': 3,
     'goals': 0,
     'minutes': 45,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': True}],
   0)],
 [('regression: conceded pair rounding',
   [{'assists': 0,
     'conceded': 4,
     'goals': 2,
     'minutes': 61,
     'own_goals': 1,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 0,
     'yellow': False}],
   10),
  ('partial repair probe: conceded pair rounding',
   [{'assists': 2,
     'conceded': 1,
     'goals': 1,
     'minutes': 1,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 0,
     'yellow': True}],
   12),
  ('second regression',
   [{'assists': 0,
     'conceded': 4,
     'goals': 0,
     'minutes': 61,
     'own_goals': 1,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'GK',
     'red': True,
     'saves': 0,
     'yellow': False}],
   -5),
  ('normal control 1',
   [{'assists': 0,
     'conceded': 0,
     'goals': 1,
     'minutes': 59,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': True}],
   6),
  ('normal control 2',
   [{'assists': 0,
     'conceded': 1,
     'goals': 2,
     'minutes': 46,
     'own_goals': 1,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': False,
     'saves': 0,
     'yellow': False}],
   7),
  ('normal control 3',
   [{'assists': 2,
     'conceded': 0,
     'goals': 1,
     'minutes': 60,
     'own_goals': 1,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': False}],
   14),
  ('normal control 4',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 0,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': False}],
   0)],
 [('regression: conceded pair rounding',
   [{'assists': 2,
     'conceded': 3,
     'goals': 0,
     'minutes': 90,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': False}],
   7),
  ('partial repair probe: conceded pair rounding',
   [{'assists': 2,
     'conceded': 1,
     'goals': 2,
     'minutes': 45,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': True,
     'saves': 0,
     'yellow': False}],
   14),
  ('second regression',
   [{'assists': 2,
     'conceded': 2,
     'goals': 2,
     'minutes': 45,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 7,
     'yellow': True}],
   19),
  ('normal control 1',
   [{'assists': 1,
     'conceded': 0,
     'goals': 0,
     'minutes': 59,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 2,
     'yellow': False}],
   4),
  ('normal control 2',
   [{'assists': 1,
     'conceded': 4,
     'goals': 0,
     'minutes': 59,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': False}],
   4),
  ('normal control 3',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 0,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': False}],
   0),
  ('normal control 4',
   [{'assists': 1,
     'conceded': 0,
     'goals': 2,
     'minutes': 1,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': True}],
   13)]]
for label, args, expected in fixtures[N-1]:
    check(label, solve(*args), expected)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)

source:
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(p):
    if p['minutes'] == 0:
        return 0
    pos = p['pos']
    pts = 2 if p['minutes'] >= 60 else 1
    pts += p['goals'] * {'GK': 6, 'DEF': 6, 'MID': 5, 'FWD': 4}[pos]
    pts += p['assists'] * 3
    if p['conceded'] == 0 and p['minutes'] >= 60:
        pts += {'GK': 4, 'DEF': 4, 'MID': 1, 'FWD': 0}[pos]
    if pos in ('GK', 'DEF'):
        pts -= (p['conceded'] + 1) // 2
    if pos == 'GK':
        pts += p['saves'] // 3
    pts += p['pen_saved'] * 5 - p['pen_missed'] * 2 - p['own_goals'] * 2
    if p['red']:
        pts -= 3
    elif p['yellow']:
        pts -= 1
    return pts
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[('regression: conceded pair rounding',
   [{'assists': 1,
     'conceded': 2,
     'goals': 2,
     'minutes': 61,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': False}],
   16),
  ('partial repair probe: conceded pair rounding',
   [{'assists': 1,
     'conceded': 3,
     'goals': 1,
     'minutes': 1,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': False}],
   9),
  ('second regression',
   [{'assists': 1,
     'conceded': 2,
     'goals': 1,
     'minutes': 45,
     'own_goals': 1,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': True,
     'saves': 0,
     'yellow': False}],
   4),
  ('normal control 1',
   [{'assists': 2,
     'conceded': 0,
     'goals': 2,
     'minutes': 45,
     'own_goals': 1,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': False,
     'saves': 0,
     'yellow': False}],
   13),
  ('normal control 2',
   [{'assists': 2,
     'conceded': 0,
     'goals': 0,
     'minutes': 1,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': True,
     'saves': 0,
     'yellow': False}],
   4),
  ('normal control 3',
   [{'assists': 2,
     'conceded': 0,
     'goals': 0,
     'minutes': 59,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': False}],
   7),
  ('normal control 4',
   [{'assists': 1,
     'conceded': 4,
     'goals': 2,
     'minutes': 1,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': False}],
   12)],
 [('regression: conceded pair rounding',
   [{'assists': 0,
     'conceded': 1,
     'goals': 0,
     'minutes': 61,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 0,
     'yellow': False}],
   2),
  ('partial repair probe: conceded pair rounding',
   [{'assists': 1,
     'conceded': 3,
     'goals': 0,
     'minutes': 1,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': True,
     'saves': 0,
     'yellow': False}],
   0),
  ('second regression',
   [{'assists': 2,
     'conceded': 2,
     'goals': 0,
     'minutes': 1,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': False}],
   6),
  ('normal control 1',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 59,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': False}],
   1),
  ('normal control 2',
   [{'assists': 1,
     'conceded': 3,
     'goals': 2,
     'minutes': 45,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': True,
     'saves': 0,
     'yellow': False}],
   11),
  ('normal control 3',
   [{'assists': 0,
     'conceded': 3,
     'goals': 0,
     'minutes': 45,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': False,
     'saves': 0,
     'yellow': False}],
   1),
  ('normal control 4',
   [{'assists': 0,
     'conceded': 0,
     'goals': 1,
     'minutes': 46,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': False}],
   6)],
 [('regression: conceded pair rounding',
   [{'assists': 0,
     'conceded': 1,
     'goals': 0,
     'minutes': 59,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': False}],
   -1),
  ('partial repair probe: conceded pair rounding',
   [{'assists': 2,
     'conceded': 3,
     'goals': 1,
     'minutes': 45,
     'own_goals': 1,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 3,
     'yellow': False}],
   11),
  ('second regression',
   [{'assists': 2,
     'conceded': 1,
     'goals': 1,
     'minutes': 59,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': True}],
   12),
  ('normal control 1',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 1,
     'own_goals': 1,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': True,
     'saves': 0,
     'yellow': False}],
   -4),
  ('normal control 2',
   [{'assists': 1,
     'conceded': 3,
     'goals': 2,
     'minutes': 61,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': False}],
   15),
  ('normal control 3',
   [{'assists': 1,
     'conceded': 0,
     'goals': 0,
     'minutes': 1,
     'own_goals': 1,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 5,
     'yellow': False}],
   1),
  ('normal control 4',
   [{'assists': 0,
     'conceded': 3,
     'goals': 0,
     'minutes': 45,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': True}],
   0)],
 [('regression: conceded pair rounding',
   [{'assists': 0,
     'conceded': 4,
     'goals': 2,
     'minutes': 61,
     'own_goals': 1,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 0,
     'yellow': False}],
   10),
  ('partial repair probe: conceded pair rounding',
   [{'assists': 2,
     'conceded': 1,
     'goals': 1,
     'minutes': 1,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 0,
     'yellow': True}],
   12),
  ('second regression',
   [{'assists': 0,
     'conceded': 4,
     'goals': 0,
     'minutes': 61,
     'own_goals': 1,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'GK',
     'red': True,
     'saves': 0,
     'yellow': False}],
   -5),
  ('normal control 1',
   [{'assists': 0,
     'conceded': 0,
     'goals': 1,
     'minutes': 59,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': True}],
   6),
  ('normal control 2',
   [{'assists': 0,
     'conceded': 1,
     'goals': 2,
     'minutes': 46,
     'own_goals': 1,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': False,
     'saves': 0,
     'yellow': False}],
   7),
  ('normal control 3',
   [{'assists': 2,
     'conceded': 0,
     'goals': 1,
     'minutes': 60,
     'own_goals': 1,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': False}],
   14),
  ('normal control 4',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 0,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': False}],
   0)],
 [('regression: conceded pair rounding',
   [{'assists': 2,
     'conceded': 3,
     'goals': 0,
     'minutes': 90,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': False}],
   7),
  ('partial repair probe: conceded pair rounding',
   [{'assists': 2,
     'conceded': 1,
     'goals': 2,
     'minutes': 45,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': True,
     'saves': 0,
     'yellow': False}],
   14),
  ('second regression',
   [{'assists': 2,
     'conceded': 2,
     'goals': 2,
     'minutes': 45,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 7,
     'yellow': True}],
   19),
  ('normal control 1',
   [{'assists': 1,
     'conceded': 0,
     'goals': 0,
     'minutes': 59,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 2,
     'yellow': False}],
   4),
  ('normal control 2',
   [{'assists': 1,
     'conceded': 4,
     'goals': 0,
     'minutes': 59,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': False}],
   4),
  ('normal control 3',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 0,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': False}],
   0),
  ('normal control 4',
   [{'assists': 1,
     'conceded': 0,
     'goals': 2,
     'minutes': 1,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': True}],
   13)]]
for label, args, expected in fixtures[N-1]:
    check(label, solve(*args), expected)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)

prompt:
A goalkeeper conceding 3 loses 3 points instead of 1.

Score an association-football fantasy player. 0 minutes scores 0 (even cards shown on the bench). Appearance 1, or 2 for 60+ minutes. Goals GK/DEF 6, MID 5, FWD 4; assist 3. Clean sheet (0 conceded while on pitch, 60+ minutes) GK/DEF 4, MID 1. GK/DEF lose 1 per 2 goals conceded (floor). GK +1 per 3 saves. Penalty save 5, penalty miss -2, own goal -2. A red card is -3 and replaces any yellow (-1).

split: open-access


broken_source:
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(p):
    if p['minutes'] == 0:
        return 0
    pos = p['pos']
    pts = 2 if p['minutes'] >= 60 else 1
    pts += p['goals'] * {'GK': 6, 'DEF': 6, 'MID': 5, 'FWD': 4}[pos]
    pts += p['assists'] * 3
    if p['conceded'] == 0 and p['minutes'] >= 60:
        pts += {'GK': 4, 'DEF': 4, 'MID': 1, 'FWD': 0}[pos]
    if pos in ('GK', 'DEF', 'MID'):
        pts -= p['conceded'] // 2
    if pos == 'GK':
        pts += p['saves'] // 3
    pts += p['pen_saved'] * 5 - p['pen_missed'] * 2 - p['own_goals'] * 2
    if p['red']:
        pts -= 3
    elif p['yellow']:
        pts -= 1
    return pts
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[('regression: conceded positions',
   [{'assists': 0,
     'conceded': 3,
     'goals': 0,
     'minutes': 61,
     'own_goals': 1,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': True}],
   -1),
  ('partial repair probe: conceded positions',
   [{'assists': 2,
     'conceded': 3,
     'goals': 0,
     'minutes': 45,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': False}],
   6),
  ('second regression',
   [{'assists': 0,
     'conceded': 2,
     'goals': 2,
     'minutes': 90,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': True,
     'saves': 0,
     'yellow': True}],
   9),
  ('normal control 1',
   [{'assists': 0,
     'conceded': 0,
     'goals': 2,
     'minutes': 1,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'GK',
     'red': True,
     'saves': 5,
     'yellow': False}],
   11),
  ('normal control 2',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 0,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': False,
     'saves': 0,
     'yellow': True}],
   0),
  ('normal control 3',
   [{'assists': 2,
     'conceded': 0,
     'goals': 1,
     'minutes': 60,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 1,
     'yellow': False}],
   18),
  ('normal control 4',
   [{'assists': 0,
     'conceded': 2,
     'goals': 0,
     'minutes': 60,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 0,
     'yellow': False}],
   -1)],
 [('regression: conceded positions',
   [{'assists': 1,
     'conceded': 3,
     'goals': 1,
     'minutes': 1,
     'own_goals': 1,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': True,
     'saves': 0,
     'yellow': True}],
   4),
  ('partial repair probe: conceded positions',
   [{'assists': 2,
     'conceded': 4,
     'goals': 2,
     'minutes': 45,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': True}],
   14),
  ('second regression',
   [{'assists': 2,
     'conceded': 3,
     'goals': 2,
     'minutes': 60,
     'own_goals': 1,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': False}],
   16),
  ('normal control 1',
   [{'assists': 2,
     'conceded': 2,
     'goals': 2,
     'minutes': 59,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 0,
     'yellow': False}],
   18),
  ('normal control 2',
   [{'assists': 1,
     'conceded': 1,
     'goals': 2,
     'minutes': 90,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': False}],
   15),
  ('normal control 3',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 1,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 6,
     'yellow': False}],
   3),
  ('normal control 4',
   [{'assists': 0,
     'conceded': 4,
     'goals': 1,
     'minutes': 59,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': False,
     'saves': 0,
     'yellow': True}],
   2)],
 [('regression: conceded positions',
   [{'assists': 0,
     'conceded': 3,
     'goals': 1,
     'minutes': 46,
     'own_goals': 1,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': True}],
   3),
  ('partial repair probe: conceded positions',
   [{'assists': 1,
     'conceded': 3,
     'goals': 0,
     'minutes': 90,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': False}],
   4),
  ('second regression',
   [{'assists': 2,
     'conceded': 4,
     'goals': 1,
     'minutes': 90,
     'own_goals': 1,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': True,
     'saves': 0,
     'yellow': False}],
   8),
  ('normal control 1',
   [{'assists': 1,
     'conceded': 0,
     'goals': 1,
     'minutes': 46,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': False}],
   9),
  ('normal control 2',
   [{'assists': 1,
     'conceded': 3,
     'goals': 2,
     'minutes': 46,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': False,
     'saves': 0,
     'yellow': False}],
   10),
  ('normal control 3',
   [{'assists': 0,
     'conceded': 0,
     'goals': 1,
     'minutes': 46,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': True,
     'saves': 0,
     'yellow': False}],
   2),
  ('normal control 4',
   [{'assists': 2,
     'conceded': 1,
     'goals': 2,
     'minutes': 61,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': False,
     'saves': 0,
     'yellow': False}],
   14)],
 [('regression: conceded positions',
   [{'assists': 2,
     'conceded': 4,
     'goals': 1,
     'minutes': 90,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': False}],
   13),
  ('partial repair probe: conceded positions',
   [{'assists': 0,
     'conceded': 4,
     'goals': 2,
     'minutes': 59,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': False}],
   9),
  ('second regression',
   [{'assists': 1,
     'conceded': 3,
     'goals': 2,
     'minutes': 46,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': True}],
   13),
  ('normal control 1',
   [{'assists': 1,
     'conceded': 1,
     'goals': 0,
     'minutes': 45,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': False}],
   4),
  ('normal control 2',
   [{'assists': 2,
     'conceded': 0,
     'goals': 0,
     'minutes': 46,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': False}],
   5),
  ('normal control 3',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 0,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': True,
     'saves': 0,
     'yellow': False}],
   0),
  ('normal control 4',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 0,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': False}],
   0)],
 [('regression: conceded positions',
   [{'assists': 2,
     'conceded': 3,
     'goals': 2,
     'minutes': 1,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': False}],
   17),
  ('partial repair probe: conceded positions',
   [{'assists': 1,
     'conceded': 2,
     'goals': 0,
     'minutes': 60,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': False}],
   4),
  ('second regression',
   [{'assists': 0,
     'conceded': 3,
     'goals': 1,
     'minutes': 61,
     'own_goals': 1,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': False}],
   5),
  ('normal control 1',
   [{'assists': 1,
     'conceded': 0,
     'goals': 2,
     'minutes': 90,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': False}],
   16),
  ('normal control 2',
   [{'assists': 2,
     'conceded': 0,
     'goals': 1,
     'minutes': 61,
     'own_goals': 1,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': False,
     'saves': 0,
     'yellow': False}],
   10),
  ('normal control 3',
   [{'assists': 0,
     'conceded': 3,
     'goals': 0,
     'minutes': 61,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 4,
     'yellow': False}],
   0),
  ('normal control 4',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 0,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 0,
     'yellow': True}],
   0)]]
for label, args, expected in fixtures[N-1]:
    check(label, solve(*args), expected)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)

meaning: Fixture-count band, not measured model difficulty

deps: stdlib

source:
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(p):
    if p['minutes'] == 0:
        return 0
    pos = p['pos']
    pts = 2 if p['minutes'] >= 60 else 1
    pts += p['goals'] * {'GK': 6, 'DEF': 6, 'MID': 5, 'FWD': 4}[pos]
    pts += p['assists'] * 3
    if p['conceded'] == 0 and p['minutes'] >= 60:
        pts += {'GK': 4, 'DEF': 4, 'MID': 1, 'FWD': 0}[pos]
    if pos in ('GK',):
        pts -= p['conceded'] // 2
    if pos == 'GK':
        pts += p['saves'] // 3
    pts += p['pen_saved'] * 5 - p['pen_missed'] * 2 - p['own_goals'] * 2
    if p['red']:
        pts -= 3
    elif p['yellow']:
        pts -= 1
    return pts
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[('regression: conceded positions',
   [{'assists': 0,
     'conceded': 3,
     'goals': 0,
     'minutes': 61,
     'own_goals': 1,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': True}],
   -1),
  ('partial repair probe: conceded positions',
   [{'assists': 2,
     'conceded': 3,
     'goals': 0,
     'minutes': 45,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': False}],
   6),
  ('second regression',
   [{'assists': 0,
     'conceded': 2,
     'goals': 2,
     'minutes': 90,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': True,
     'saves': 0,
     'yellow': True}],
   9),
  ('normal control 1',
   [{'assists': 0,
     'conceded': 0,
     'goals': 2,
     'minutes': 1,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'GK',
     'red': True,
     'saves': 5,
     'yellow': False}],
   11),
  ('normal control 2',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 0,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': False,
     'saves': 0,
     'yellow': True}],
   0),
  ('normal control 3',
   [{'assists': 2,
     'conceded': 0,
     'goals': 1,
     'minutes': 60,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 1,
     'yellow': False}],
   18),
  ('normal control 4',
   [{'assists': 0,
     'conceded': 2,
     'goals': 0,
     'minutes': 60,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 0,
     'yellow': False}],
   -1)],
 [('regression: conceded positions',
   [{'assists': 1,
     'conceded': 3,
     'goals': 1,
     'minutes': 1,
     'own_goals': 1,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': True,
     'saves': 0,
     'yellow': True}],
   4),
  ('partial repair probe: conceded positions',
   [{'assists': 2,
     'conceded': 4,
     'goals': 2,
     'minutes': 45,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': True}],
   14),
  ('second regression',
   [{'assists': 2,
     'conceded': 3,
     'goals': 2,
     'minutes': 60,
     'own_goals': 1,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': False}],
   16),
  ('normal control 1',
   [{'assists': 2,
     'conceded': 2,
     'goals': 2,
     'minutes': 59,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 0,
     'yellow': False}],
   18),
  ('normal control 2',
   [{'assists': 1,
     'conceded': 1,
     'goals': 2,
     'minutes': 90,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': False}],
   15),
  ('normal control 3',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 1,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 6,
     'yellow': False}],
   3),
  ('normal control 4',
   [{'assists': 0,
     'conceded': 4,
     'goals': 1,
     'minutes': 59,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': False,
     'saves': 0,
     'yellow': True}],
   2)],
 [('regression: conceded positions',
   [{'assists': 0,
     'conceded': 3,
     'goals': 1,
     'minutes': 46,
     'own_goals': 1,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': True}],
   3),
  ('partial repair probe: conceded positions',
   [{'assists': 1,
     'conceded': 3,
     'goals': 0,
     'minutes': 90,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': False}],
   4),
  ('second regression',
   [{'assists': 2,
     'conceded': 4,
     'goals': 1,
     'minutes': 90,
     'own_goals': 1,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': True,
     'saves': 0,
     'yellow': False}],
   8),
  ('normal control 1',
   [{'assists': 1,
     'conceded': 0,
     'goals': 1,
     'minutes': 46,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': False}],
   9),
  ('normal control 2',
   [{'assists': 1,
     'conceded': 3,
     'goals': 2,
     'minutes': 46,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': False,
     'saves': 0,
     'yellow': False}],
   10),
  ('normal control 3',
   [{'assists': 0,
     'conceded': 0,
     'goals': 1,
     'minutes': 46,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': True,
     'saves': 0,
     'yellow': False}],
   2),
  ('normal control 4',
   [{'assists': 2,
     'conceded': 1,
     'goals': 2,
     'minutes': 61,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': False,
     'saves': 0,
     'yellow': False}],
   14)],
 [('regression: conceded positions',
   [{'assists': 2,
     'conceded': 4,
     'goals': 1,
     'minutes': 90,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': False}],
   13),
  ('partial repair probe: conceded positions',
   [{'assists': 0,
     'conceded': 4,
     'goals': 2,
     'minutes': 59,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': False}],
   9),
  ('second regression',
   [{'assists': 1,
     'conceded': 3,
     'goals': 2,
     'minutes': 46,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': True}],
   13),
  ('normal control 1',
   [{'assists': 1,
     'conceded': 1,
     'goals': 0,
     'minutes': 45,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': False}],
   4),
  ('normal control 2',
   [{'assists': 2,
     'conceded': 0,
     'goals': 0,
     'minutes': 46,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': False}],
   5),
  ('normal control 3',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 0,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': True,
     'saves': 0,
     'yellow': False}],
   0),
  ('normal control 4',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 0,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': False}],
   0)],
 [('regression: conceded positions',
   [{'assists': 2,
     'conceded': 3,
     'goals': 2,
     'minutes': 1,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': False}],
   17),
  ('partial repair probe: conceded positions',
   [{'assists': 1,
     'conceded': 2,
     'goals': 0,
     'minutes': 60,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': False}],
   4),
  ('second regression',
   [{'assists': 0,
     'conceded': 3,
     'goals': 1,
     'minutes': 61,
     'own_goals': 1,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': False}],
   5),
  ('normal control 1',
   [{'assists': 1,
     'conceded': 0,
     'goals': 2,
     'minutes': 90,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': False}],
   16),
  ('normal control 2',
   [{'assists': 2,
     'conceded': 0,
     'goals': 1,
     'minutes': 61,
     'own_goals': 1,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': False,
     'saves': 0,
     'yellow': False}],
   10),
  ('normal control 3',
   [{'assists': 0,
     'conceded': 3,
     'goals': 0,
     'minutes': 61,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 4,
     'yellow': False}],
   0),
  ('normal control 4',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 0,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 0,
     'yellow': True}],
   0)]]
for label, args, expected in fixtures[N-1]:
    check(label, solve(*args), expected)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)

prompt:
Midfielders lose points when their team concedes twice.

Score an association-football fantasy player. 0 minutes scores 0 (even cards shown on the bench). Appearance 1, or 2 for 60+ minutes. Goals GK/DEF 6, MID 5, FWD 4; assist 3. Clean sheet (0 conceded while on pitch, 60+ minutes) GK/DEF 4, MID 1. GK/DEF lose 1 per 2 goals conceded (floor). GK +1 per 3 saves. Penalty save 5, penalty miss -2, own goal -2. A red card is -3 and replaces any yellow (-1).

split: open-access


broken_source:
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(p):
    if p['minutes'] == 0:
        return 0
    pos = p['pos']
    pts = 2 if p['minutes'] >= 60 else 1
    pts += p['goals'] * {'GK': 6, 'DEF': 6, 'MID': 5, 'FWD': 4}[pos]
    pts += p['assists'] * 3
    if p['conceded'] == 0 and p['minutes'] >= 60:
        pts += {'GK': 4, 'DEF': 4, 'MID': 1, 'FWD': 0}[pos]
    if pos in ('GK', 'DEF'):
        pts -= p['conceded'] // 2
    if pos == 'GK':
        pts += p['saves'] // 3
    pts += p['pen_saved'] * 5 - p['pen_missed'] * 2 - p['own_goals'] * 2
    if p['red']:
        pts -= 3
    if p['yellow']:
        pts -= 1
    return pts
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[('regression: second yellow replacement',
   [{'assists': 1,
     'conceded': 0,
     'goals': 2,
     'minutes': 46,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'MID',
     'red': True,
     'saves': 0,
     'yellow': True}],
   9),
  ('partial repair probe: second yellow replacement',
   [{'assists': 1,
     'conceded': 4,
     'goals': 2,
     'minutes': 61,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': True,
     'saves': 0,
     'yellow': False}],
   12),
  ('second regression',
   [{'assists': 2,
     'conceded': 3,
     'goals': 0,
     'minutes': 61,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'GK',
     'red': True,
     'saves': 6,
     'yellow': False}],
   4),
  ('normal control 1',
   [{'assists': 1,
     'conceded': 1,
     'goals': 0,
     'minutes': 46,
     'own_goals': 1,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': False}],
   0),
  ('normal control 2',
   [{'assists': 2,
     'conceded': 3,
     'goals': 2,
     'minutes': 45,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': False}],
   17),
  ('normal control 3',
   [{'assists': 2,
     'conceded': 1,
     'goals': 0,
     'minutes': 60,
     'own_goals': 1,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': False,
     'saves': 0,
     'yellow': False}],
   4),
  ('normal control 4',
   [{'assists': 2,
     'conceded': 0,
     'goals': 0,
     'minutes': 45,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': False,
     'saves': 0,
     'yellow': False}],
   7)],
 [('regression: second yellow replacement',
   [{'assists': 1,
     'conceded': 1,
     'goals': 0,
     'minutes': 90,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': True,
     'saves': 0,
     'yellow': True}],
   2),
  ('partial repair probe: second yellow replacement',
   [{'assists': 0,
     'conceded': 2,
     'goals': 2,
     'minutes': 45,
     'own_goals': 1,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': True,
     'saves': 0,
     'yellow': False}],
   4),
  ('second regression',
   [{'assists': 1,
     'conceded': 0,
     'goals': 0,
     'minutes': 60,
     'own_goals': 1,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': True,
     'saves': 0,
     'yellow': False}],
   2),
  ('normal control 1',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 0,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': False,
     'saves': 0,
     'yellow': False}],
   0),
  ('normal control 2',
   [{'assists': 2,
     'conceded': 1,
     'goals': 2,
     'minutes': 1,
     'own_goals': 1,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': False,
     'saves': 0,
     'yellow': False}],
   11),
  ('normal control 3',
   [{'assists': 0,
     'conceded': 4,
     'goals': 2,
     'minutes': 60,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 4,
     'yellow': False}],
   11),
  ('normal control 4',
   [{'assists': 2,
     'conceded': 1,
     'goals': 0,
     'minutes': 61,
     'own_goals': 1,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 5,
     'yellow': True}],
   4)],
 [('regression: second yellow replacement',
   [{'assists': 2,
     'conceded': 0,
     'goals': 1,
     'minutes': 90,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': True,
     'saves': 0,
     'yellow': True}],
   7),
  ('partial repair probe: second yellow replacement',
   [{'assists': 2,
     'conceded': 3,
     'goals': 1,
     'minutes': 61,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'MID',
     'red': True,
     'saves': 0,
     'yellow': False}],
   8),
  ('second regression',
   [{'assists': 0,
     'conceded': 4,
     'goals': 0,
     'minutes': 1,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': True,
     'saves': 0,
     'yellow': False}],
   -6),
  ('normal control 1',
   [{'assists': 1,
     'conceded': 2,
     'goals': 0,
     'minutes': 1,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': False}],
   3),
  ('normal control 2',
   [{'assists': 0,
     'conceded': 4,
     'goals': 2,
     'minutes': 61,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': False}],
   12),
  ('normal control 3',
   [{'assists': 0,
     'conceded': 4,
     'goals': 2,
     'minutes': 90,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': False,
     'saves': 0,
     'yellow': False}],
   8),
  ('normal control 4',
   [{'assists': 2,
     'conceded': 3,
     'goals': 0,
     'minutes': 1,
     'own_goals': 1,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 2,
     'yellow': False}],
   4)],
 [('regression: second yellow replacement',
   [{'assists': 2,
     'conceded': 3,
     'goals': 1,
     'minutes': 46,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': True,
     'saves': 0,
     'yellow': True}],
   9),
  ('partial repair probe: second yellow replacement',
   [{'assists': 1,
     'conceded': 2,
     'goals': 1,
     'minutes': 45,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': True,
     'saves': 0,
     'yellow': False}],
   5),
  ('second regression',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 61,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'GK',
     'red': True,
     'saves': 7,
     'yellow': True}],
   3),
  ('normal control 1',
   [{'assists': 1,
     'conceded': 4,
     'goals': 0,
     'minutes': 90,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': True}],
   4),
  ('normal control 2',
   [{'assists': 2,
     'conceded': 2,
     'goals': 0,
     'minutes': 60,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 5,
     'yellow': False}],
   8),
  ('normal control 3',
   [{'assists': 1,
     'conceded': 3,
     'goals': 0,
     'minutes': 90,
     'own_goals': 1,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': False}],
   3),
  ('normal control 4',
   [{'assists': 1,
     'conceded': 0,
     'goals': 0,
     'minutes': 59,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 6,
     'yellow': True}],
   5)],
 [('regression: second yellow replacement',
   [{'assists': 2,
     'conceded': 3,
     'goals': 0,
     'minutes': 60,
     'own_goals': 1,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': True,
     'saves': 0,
     'yellow': True}],
   3),
  ('partial repair probe: second yellow replacement',
   [{'assists': 1,
     'conceded': 4,
     'goals': 0,
     'minutes': 61,
     'own_goals': 1,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'GK',
     'red': True,
     'saves': 4,
     'yellow': False}],
   -1),
  ('second regression',
   [{'assists': 1,
     'conceded': 0,
     'goals': 0,
     'minutes': 45,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'GK',
     'red': True,
     'saves': 7,
     'yellow': True}],
   3),
  ('normal control 1',
   [{'assists': 1,
     'conceded': 2,
     'goals': 0,
     'minutes': 61,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': False}],
   5),
  ('normal control 2',
   [{'assists': 1,
     'conceded': 0,
     'goals': 2,
     'minutes': 45,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': False}],
   16),
  ('normal control 3',
   [{'assists': 1,
     'conceded': 4,
     'goals': 2,
     'minutes': 45,
     'own_goals': 1,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 5,
     'yellow': False}],
   13),
  ('normal control 4',
   [{'assists': 2,
     'conceded': 2,
     'goals': 0,
     'minutes': 46,
     'own_goals': 1,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 6,
     'yellow': False}],
   6)]]
for label, args, expected in fixtures[N-1]:
    check(label, solve(*args), expected)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)

source:
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(p):
    if p['minutes'] == 0:
        return 0
    pos = p['pos']
    pts = 2 if p['minutes'] >= 60 else 1
    pts += p['goals'] * {'GK': 6, 'DEF': 6, 'MID': 5, 'FWD': 4}[pos]
    pts += p['assists'] * 3
    if p['conceded'] == 0 and p['minutes'] >= 60:
        pts += {'GK': 4, 'DEF': 4, 'MID': 1, 'FWD': 0}[pos]
    if pos in ('GK', 'DEF'):
        pts -= p['conceded'] // 2
    if pos == 'GK':
        pts += p['saves'] // 3
    pts += p['pen_saved'] * 5 - p['pen_missed'] * 2 - p['own_goals'] * 2
    if p['red']:
        pts -= 2
    if p['yellow']:
        pts -= 1
    return pts
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[('regression: second yellow replacement',
   [{'assists': 1,
     'conceded': 0,
     'goals': 2,
     'minutes': 46,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'MID',
     'red': True,
     'saves': 0,
     'yellow': True}],
   9),
  ('partial repair probe: second yellow replacement',
   [{'assists': 1,
     'conceded': 4,
     'goals': 2,
     'minutes': 61,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': True,
     'saves': 0,
     'yellow': False}],
   12),
  ('second regression',
   [{'assists': 2,
     'conceded': 3,
     'goals': 0,
     'minutes': 61,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'GK',
     'red': True,
     'saves': 6,
     'yellow': False}],
   4),
  ('normal control 1',
   [{'assists': 1,
     'conceded': 1,
     'goals': 0,
     'minutes': 46,
     'own_goals': 1,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': False}],
   0),
  ('normal control 2',
   [{'assists': 2,
     'conceded': 3,
     'goals': 2,
     'minutes': 45,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': False}],
   17),
  ('normal control 3',
   [{'assists': 2,
     'conceded': 1,
     'goals': 0,
     'minutes': 60,
     'own_goals': 1,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': False,
     'saves': 0,
     'yellow': False}],
   4),
  ('normal control 4',
   [{'assists': 2,
     'conceded': 0,
     'goals': 0,
     'minutes': 45,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': False,
     'saves': 0,
     'yellow': False}],
   7)],
 [('regression: second yellow replacement',
   [{'assists': 1,
     'conceded': 1,
     'goals': 0,
     'minutes': 90,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': True,
     'saves': 0,
     'yellow': True}],
   2),
  ('partial repair probe: second yellow replacement',
   [{'assists': 0,
     'conceded': 2,
     'goals': 2,
     'minutes': 45,
     'own_goals': 1,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': True,
     'saves': 0,
     'yellow': False}],
   4),
  ('second regression',
   [{'assists': 1,
     'conceded': 0,
     'goals': 0,
     'minutes': 60,
     'own_goals': 1,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': True,
     'saves': 0,
     'yellow': False}],
   2),
  ('normal control 1',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 0,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': False,
     'saves': 0,
     'yellow': False}],
   0),
  ('normal control 2',
   [{'assists': 2,
     'conceded': 1,
     'goals': 2,
     'minutes': 1,
     'own_goals': 1,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': False,
     'saves': 0,
     'yellow': False}],
   11),
  ('normal control 3',
   [{'assists': 0,
     'conceded': 4,
     'goals': 2,
     'minutes': 60,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 4,
     'yellow': False}],
   11),
  ('normal control 4',
   [{'assists': 2,
     'conceded': 1,
     'goals': 0,
     'minutes': 61,
     'own_goals': 1,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 5,
     'yellow': True}],
   4)],
 [('regression: second yellow replacement',
   [{'assists': 2,
     'conceded': 0,
     'goals': 1,
     'minutes': 90,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': True,
     'saves': 0,
     'yellow': True}],
   7),
  ('partial repair probe: second yellow replacement',
   [{'assists': 2,
     'conceded': 3,
     'goals': 1,
     'minutes': 61,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'MID',
     'red': True,
     'saves': 0,
     'yellow': False}],
   8),
  ('second regression',
   [{'assists': 0,
     'conceded': 4,
     'goals': 0,
     'minutes': 1,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': True,
     'saves': 0,
     'yellow': False}],
   -6),
  ('normal control 1',
   [{'assists': 1,
     'conceded': 2,
     'goals': 0,
     'minutes': 1,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': False}],
   3),
  ('normal control 2',
   [{'assists': 0,
     'conceded': 4,
     'goals': 2,
     'minutes': 61,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': False}],
   12),
  ('normal control 3',
   [{'assists': 0,
     'conceded': 4,
     'goals': 2,
     'minutes': 90,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': False,
     'saves': 0,
     'yellow': False}],
   8),
  ('normal control 4',
   [{'assists': 2,
     'conceded': 3,
     'goals': 0,
     'minutes': 1,
     'own_goals': 1,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 2,
     'yellow': False}],
   4)],
 [('regression: second yellow replacement',
   [{'assists': 2,
     'conceded': 3,
     'goals': 1,
     'minutes': 46,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': True,
     'saves': 0,
     'yellow': True}],
   9),
  ('partial repair probe: second yellow replacement',
   [{'assists': 1,
     'conceded': 2,
     'goals': 1,
     'minutes': 45,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': True,
     'saves': 0,
     'yellow': False}],
   5),
  ('second regression',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 61,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'GK',
     'red': True,
     'saves': 7,
     'yellow': True}],
   3),
  ('normal control 1',
   [{'assists': 1,
     'conceded': 4,
     'goals': 0,
     'minutes': 90,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': True}],
   4),
  ('normal control 2',
   [{'assists': 2,
     'conceded': 2,
     'goals': 0,
     'minutes': 60,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 5,
     'yellow': False}],
   8),
  ('normal control 3',
   [{'assists': 1,
     'conceded': 3,
     'goals': 0,
     'minutes': 90,
     'own_goals': 1,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': False}],
   3),
  ('normal control 4',
   [{'assists': 1,
     'conceded': 0,
     'goals': 0,
     'minutes': 59,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 6,
     'yellow': True}],
   5)],
 [('regression: second yellow replacement',
   [{'assists': 2,
     'conceded': 3,
     'goals': 0,
     'minutes': 60,
     'own_goals': 1,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': True,
     'saves': 0,
     'yellow': True}],
   3),
  ('partial repair probe: second yellow replacement',
   [{'assists': 1,
     'conceded': 4,
     'goals': 0,
     'minutes': 61,
     'own_goals': 1,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'GK',
     'red': True,
     'saves': 4,
     'yellow': False}],
   -1),
  ('second regression',
   [{'assists': 1,
     'conceded': 0,
     'goals': 0,
     'minutes': 45,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'GK',
     'red': True,
     'saves': 7,
     'yellow': True}],
   3),
  ('normal control 1',
   [{'assists': 1,
     'conceded': 2,
     'goals': 0,
     'minutes': 61,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': False}],
   5),
  ('normal control 2',
   [{'assists': 1,
     'conceded': 0,
     'goals': 2,
     'minutes': 45,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': False}],
   16),
  ('normal control 3',
   [{'assists': 1,
     'conceded': 4,
     'goals': 2,
     'minutes': 45,
     'own_goals': 1,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 5,
     'yellow': False}],
   13),
  ('normal control 4',
   [{'assists': 2,
     'conceded': 2,
     'goals': 0,
     'minutes': 46,
     'own_goals': 1,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 6,
     'yellow': False}],
   6)]]
for label, args, expected in fixtures[N-1]:
    check(label, solve(*args), expected)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)

prompt:
A player sent off after two bookings loses 4 points.

Score an association-football fantasy player. 0 minutes scores 0 (even cards shown on the bench). Appearance 1, or 2 for 60+ minutes. Goals GK/DEF 6, MID 5, FWD 4; assist 3. Clean sheet (0 conceded while on pitch, 60+ minutes) GK/DEF 4, MID 1. GK/DEF lose 1 per 2 goals conceded (floor). GK +1 per 3 saves. Penalty save 5, penalty miss -2, own goal -2. A red card is -3 and replaces any yellow (-1).

split: open-access


broken_source:
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(p):
    pos = p['pos']
    pts = 2 if p['minutes'] >= 60 else 1
    pts += p['goals'] * {'GK': 6, 'DEF': 6, 'MID': 5, 'FWD': 4}[pos]
    pts += p['assists'] * 3
    if p['conceded'] == 0 and p['minutes'] >= 60:
        pts += {'GK': 4, 'DEF': 4, 'MID': 1, 'FWD': 0}[pos]
    if pos in ('GK', 'DEF'):
        pts -= p['conceded'] // 2
    if pos == 'GK':
        pts += p['saves'] // 3
    pts += p['pen_saved'] * 5 - p['pen_missed'] * 2 - p['own_goals'] * 2
    if p['red']:
        pts -= 3
    elif p['yellow']:
        pts -= 1
    return pts
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[('regression: unused bench player',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 0,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': True,
     'saves': 0,
     'yellow': False}],
   0),
  ('partial repair probe: unused bench player',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 0,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': True}],
   0),
  ('second regression',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 0,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': False}],
   0),
  ('normal control 1',
   [{'assists': 1,
     'conceded': 3,
     'goals': 2,
     'minutes': 46,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 3,
     'yellow': False}],
   14),
  ('normal control 2',
   [{'assists': 1,
     'conceded': 3,
     'goals': 2,
     'minutes': 61,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 5,
     'yellow': False}],
   17),
  ('normal control 3',
   [{'assists': 2,
     'conceded': 1,
     'goals': 0,
     'minutes': 59,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': False,
     'saves': 0,
     'yellow': True}],
   4),
  ('normal control 4',
   [{'assists': 0,
     'conceded': 2,
     'goals': 0,
     'minutes': 60,
     'own_goals': 1,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 3,
     'yellow': False}],
   0)],
 [('regression: unused bench player',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 0,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': False,
     'saves': 0,
     'yellow': False}],
   0),
  ('partial repair probe: unused bench player',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 0,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 0,
     'yellow': True}],
   0),
  ('second regression',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 0,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': False}],
   0),
  ('normal control 1',
   [{'assists': 0,
     'conceded': 0,
     'goals': 2,
     'minutes': 60,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 4,
     'yellow': False}],
   17),
  ('normal control 2',
   [{'assists': 2,
     'conceded': 0,
     'goals': 1,
     'minutes': 60,
     'own_goals': 1,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': False,
     'saves': 0,
     'yellow': False}],
   10),
  ('normal control 3',
   [{'assists': 2,
     'conceded': 4,
     'goals': 0,
     'minutes': 60,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 5,
     'yellow': True}],
   4),
  ('normal control 4',
   [{'assists': 1,
     'conceded': 4,
     'goals': 1,
     'minutes': 46,
     'own_goals': 1,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': False}],
   5)],
 [('regression: unused bench player',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 0,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': False,
     'saves': 0,
     'yellow': False}],
   0),
  ('partial repair probe: unused bench player',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 0,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': False,
     'saves': 0,
     'yellow': True}],
   0),
  ('second regression',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 0,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': True,
     'saves': 0,
     'yellow': False}],
   0),
  ('normal control 1',
   [{'assists': 1,
     'conceded': 3,
     'goals': 0,
     'minutes': 45,
     'own_goals': 1,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': False}],
   0),
  ('normal control 2',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 45,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': True,
     'saves': 0,
     'yellow': True}],
   -2),
  ('normal control 3',
   [{'assists': 2,
     'conceded': 1,
     'goals': 1,
     'minutes': 45,
     'own_goals': 1,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': False}],
   9),
  ('normal control 4',
   [{'assists': 0,
     'conceded': 2,
     'goals': 1,
     'minutes': 61,
     'own_goals': 1,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': False}],
   3)],
 [('regression: unused bench player',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 0,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': False}],
   0),
  ('partial repair probe: unused bench player',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 0,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': True}],
   0),
  ('second regression',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 0,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': False}],
   0),
  ('normal control 1',
   [{'assists': 1,
     'conceded': 3,
     'goals': 0,
     'minutes': 60,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': True}],
   3),
  ('normal control 2',
   [{'assists': 2,
     'conceded': 1,
     'goals': 2,
     'minutes': 59,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 3,
     'yellow': False}],
   18),
  ('normal control 3',
   [{'assists': 2,
     'conceded': 0,
     'goals': 0,
     'minutes': 59,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': False,
     'saves': 0,
     'yellow': False}],
   7),
  ('normal control 4',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 90,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 2,
     'yellow': False}],
   4)],
 [('regression: unused bench player',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 0,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': True,
     'saves': 0,
     'yellow': False}],
   0),
  ('partial repair probe: unused bench player',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 0,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': True,
     'saves': 0,
     'yellow': False}],
   0),
  ('second regression',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 0,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': False,
     'saves': 0,
     'yellow': False}],
   0),
  ('normal control 1',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 59,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 2,
     'yellow': False}],
   1),
  ('normal control 2',
   [{'assists': 0,
     'conceded': 1,
     'goals': 2,
     'minutes': 61,
     'own_goals': 1,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': False}],
   12),
  ('normal control 3',
   [{'assists': 1,
     'conceded': 0,
     'goals': 0,
     'minutes': 90,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': False}],
   9),
  ('normal control 4',
   [{'assists': 2,
     'conceded': 2,
     'goals': 0,
     'minutes': 45,
     'own_goals': 1,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': False}],
   5)]]
for label, args, expected in fixtures[N-1]:
    check(label, solve(*args), expected)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)

source:
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(p):
    pos = p['pos']
    pts = 2 if p['minutes'] >= 60 else (1 if p['minutes'] else 0)
    pts += p['goals'] * {'GK': 6, 'DEF': 6, 'MID': 5, 'FWD': 4}[pos]
    pts += p['assists'] * 3
    if p['conceded'] == 0 and p['minutes'] >= 60:
        pts += {'GK': 4, 'DEF': 4, 'MID': 1, 'FWD': 0}[pos]
    if pos in ('GK', 'DEF'):
        pts -= p['conceded'] // 2
    if pos == 'GK':
        pts += p['saves'] // 3
    pts += p['pen_saved'] * 5 - p['pen_missed'] * 2 - p['own_goals'] * 2
    if p['red']:
        pts -= 3
    elif p['yellow']:
        pts -= 1
    return pts
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[('regression: unused bench player',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 0,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': True,
     'saves': 0,
     'yellow': False}],
   0),
  ('partial repair probe: unused bench player',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 0,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': True}],
   0),
  ('second regression',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 0,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': False}],
   0),
  ('normal control 1',
   [{'assists': 1,
     'conceded': 3,
     'goals': 2,
     'minutes': 46,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 3,
     'yellow': False}],
   14),
  ('normal control 2',
   [{'assists': 1,
     'conceded': 3,
     'goals': 2,
     'minutes': 61,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 5,
     'yellow': False}],
   17),
  ('normal control 3',
   [{'assists': 2,
     'conceded': 1,
     'goals': 0,
     'minutes': 59,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': False,
     'saves': 0,
     'yellow': True}],
   4),
  ('normal control 4',
   [{'assists': 0,
     'conceded': 2,
     'goals': 0,
     'minutes': 60,
     'own_goals': 1,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 3,
     'yellow': False}],
   0)],
 [('regression: unused bench player',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 0,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': False,
     'saves': 0,
     'yellow': False}],
   0),
  ('partial repair probe: unused bench player',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 0,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 0,
     'yellow': True}],
   0),
  ('second regression',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 0,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': False}],
   0),
  ('normal control 1',
   [{'assists': 0,
     'conceded': 0,
     'goals': 2,
     'minutes': 60,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 4,
     'yellow': False}],
   17),
  ('normal control 2',
   [{'assists': 2,
     'conceded': 0,
     'goals': 1,
     'minutes': 60,
     'own_goals': 1,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': False,
     'saves': 0,
     'yellow': False}],
   10),
  ('normal control 3',
   [{'assists': 2,
     'conceded': 4,
     'goals': 0,
     'minutes': 60,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 5,
     'yellow': True}],
   4),
  ('normal control 4',
   [{'assists': 1,
     'conceded': 4,
     'goals': 1,
     'minutes': 46,
     'own_goals': 1,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': False}],
   5)],
 [('regression: unused bench player',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 0,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': False,
     'saves': 0,
     'yellow': False}],
   0),
  ('partial repair probe: unused bench player',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 0,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': False,
     'saves': 0,
     'yellow': True}],
   0),
  ('second regression',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 0,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': True,
     'saves': 0,
     'yellow': False}],
   0),
  ('normal control 1',
   [{'assists': 1,
     'conceded': 3,
     'goals': 0,
     'minutes': 45,
     'own_goals': 1,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': False}],
   0),
  ('normal control 2',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 45,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': True,
     'saves': 0,
     'yellow': True}],
   -2),
  ('normal control 3',
   [{'assists': 2,
     'conceded': 1,
     'goals': 1,
     'minutes': 45,
     'own_goals': 1,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': False}],
   9),
  ('normal control 4',
   [{'assists': 0,
     'conceded': 2,
     'goals': 1,
     'minutes': 61,
     'own_goals': 1,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': False}],
   3)],
 [('regression: unused bench player',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 0,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': False}],
   0),
  ('partial repair probe: unused bench player',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 0,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': True}],
   0),
  ('second regression',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 0,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': False}],
   0),
  ('normal control 1',
   [{'assists': 1,
     'conceded': 3,
     'goals': 0,
     'minutes': 60,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': True}],
   3),
  ('normal control 2',
   [{'assists': 2,
     'conceded': 1,
     'goals': 2,
     'minutes': 59,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 3,
     'yellow': False}],
   18),
  ('normal control 3',
   [{'assists': 2,
     'conceded': 0,
     'goals': 0,
     'minutes': 59,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': False,
     'saves': 0,
     'yellow': False}],
   7),
  ('normal control 4',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 90,
     'own_goals': 0,
     'pen_missed': 1,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 2,
     'yellow': False}],
   4)],
 [('regression: unused bench player',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 0,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': True,
     'saves': 0,
     'yellow': False}],
   0),
  ('partial repair probe: unused bench player',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 0,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': True,
     'saves': 0,
     'yellow': False}],
   0),
  ('second regression',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 0,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'FWD',
     'red': False,
     'saves': 0,
     'yellow': False}],
   0),
  ('normal control 1',
   [{'assists': 0,
     'conceded': 0,
     'goals': 0,
     'minutes': 59,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'GK',
     'red': False,
     'saves': 2,
     'yellow': False}],
   1),
  ('normal control 2',
   [{'assists': 0,
     'conceded': 1,
     'goals': 2,
     'minutes': 61,
     'own_goals': 1,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': False}],
   12),
  ('normal control 3',
   [{'assists': 1,
     'conceded': 0,
     'goals': 0,
     'minutes': 90,
     'own_goals': 0,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'DEF',
     'red': False,
     'saves': 0,
     'yellow': False}],
   9),
  ('normal control 4',
   [{'assists': 2,
     'conceded': 2,
     'goals': 0,
     'minutes': 45,
     'own_goals': 1,
     'pen_missed': 0,
     'pen_saved': 0,
     'pos': 'MID',
     'red': False,
     'saves': 0,
     'yellow': False}],
   5)]]
for label, args, expected in fixtures[N-1]:
    check(label, solve(*args), expected)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)

prompt:
A goalkeeper who never left the bench scores 1 point.

Score an association-football fantasy player. 0 minutes scores 0 (even cards shown on the bench). Appearance 1, or 2 for 60+ minutes. Goals GK/DEF 6, MID 5, FWD 4; assist 3. Clean sheet (0 conceded while on pitch, 60+ minutes) GK/DEF 4, MID 1. GK/DEF lose 1 per 2 goals conceded (floor). GK +1 per 3 saves. Penalty save 5, penalty miss -2, own goal -2. A red card is -3 and replaces any yellow (-1).

split: open-access