Spaces:
Sleeping
Sleeping
File size: 388 Bytes
edc0715 |
1 2 3 4 5 6 7 8 9 10 |
from typing import List, Dict
def candidates_from_scorecard(players: Dict[str, List[str]]) -> List[str]:
"""Pick likely next-over bowlers from bowlers who have bowled and 1-2 unused names (if present)."""
bowlers = players.get("bowlers", []) or []
# Heuristic: top 3 active bowlers for MVP
return bowlers[:3] if bowlers else []
PHASES = ["Powerplay", "Middle", "Death"]
|