Spaces:
Sleeping
Sleeping
Download src/features.py from Alpha108/cricket-strategy-agent: direct link, hf CLI and curl.
- Browser
- Download file 388 Bytes
-
https://huggingface.co/spaces/Alpha108/cricket-strategy-agent/resolve/main/src/features.py
- Command line
-
hf download hf://spaces/Alpha108/cricket-strategy-agent/src/features.py
-
curl -L -o features.py https://huggingface.co/spaces/Alpha108/cricket-strategy-agent/resolve/main/src/features.py
388 Bytes
| 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"] | |