Alpha108 commited on
Commit
edc0715
·
verified ·
1 Parent(s): 16839c2

Create features.py

Browse files
Files changed (1) hide show
  1. src/features.py +9 -0
src/features.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ from typing import List, Dict
2
+
3
+ def candidates_from_scorecard(players: Dict[str, List[str]]) -> List[str]:
4
+ """Pick likely next-over bowlers from bowlers who have bowled and 1-2 unused names (if present)."""
5
+ bowlers = players.get("bowlers", []) or []
6
+ # Heuristic: top 3 active bowlers for MVP
7
+ return bowlers[:3] if bowlers else []
8
+
9
+ PHASES = ["Powerplay", "Middle", "Death"]