Spaces:
Runtime error
Runtime error
Create scorecard.py
Browse files- scorecard.py +8 -0
scorecard.py
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# scorecard.py
|
2 |
+
def get_scorecard():
|
3 |
+
# Fetch player performance data (from a database or API)
|
4 |
+
player_scores = [
|
5 |
+
{"player": "John", "runs": 50, "balls": 30, "wickets": 1},
|
6 |
+
{"player": "Tom", "runs": 30, "balls": 40, "wickets": 0}
|
7 |
+
]
|
8 |
+
return player_scores
|