Skip to content

Commit

Permalink
Updated stats to automatically calculate hits and removed hits from p…
Browse files Browse the repository at this point in the history
…layer data
  • Loading branch information
DannyJo committed May 29, 2024
1 parent a8e7d45 commit 79e4043
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 107 deletions.
68 changes: 0 additions & 68 deletions public/data/2023/players.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@
"gender": "female",
"stats": {
"atBat": 23,
"hits": 13,
"walks": 2,
"runsBattedIn": 4,
"firstBase": 9,
"secondBase": 2,
"thirdBase": 0,
"homeRuns": 0,
"struckOut": 0,
"mvp": 0
}
},
Expand All @@ -22,48 +20,27 @@
"gender": "male",
"stats": {
"atBat": 20,
"hits": 14,
"walks": 0,
"runsBattedIn": 13,
"firstBase": 3,
"secondBase": 7,
"thirdBase": 2,
"homeRuns": 2,
"struckOut": 0,
"mvp": 1
}
},
{
"name": "Daniel",
"team": "Hackers",
"gender": "male",
"stats": {
"atBat": 0,
"hits": 0,
"walks": 0,
"runsBattedIn": 0,
"firstBase": 0,
"secondBase": 0,
"thirdBase": 0,
"homeRuns": 0,
"struckOut": 0,
"mvp": 0
}
},
{
"name": "Darren",
"team": "Hackers",
"gender": "male",
"stats": {
"atBat": 17,
"hits": 10,
"walks": 1,
"runsBattedIn": 7,
"firstBase": 2,
"secondBase": 4,
"thirdBase": 1,
"homeRuns": 2,
"struckOut": 0,
"mvp": 1
}
},
Expand All @@ -73,14 +50,12 @@
"gender": "female",
"stats": {
"atBat": 19,
"hits": 10,
"walks": 0,
"runsBattedIn": 3,
"firstBase": 9,
"secondBase": 1,
"thirdBase": 0,
"homeRuns": 0,
"struckOut": 0,
"mvp": 1
}
},
Expand All @@ -90,14 +65,12 @@
"gender": "female",
"stats": {
"atBat": 20,
"hits": 7,
"walks": 2,
"runsBattedIn": 3,
"firstBase": 5,
"secondBase": 0,
"thirdBase": 0,
"homeRuns": 0,
"struckOut": 0,
"mvp": 0
}
},
Expand All @@ -107,14 +80,12 @@
"gender": "female",
"stats": {
"atBat": 26,
"hits": 14,
"walks": 0,
"runsBattedIn": 12,
"firstBase": 7,
"secondBase": 2,
"thirdBase": 0,
"homeRuns": 5,
"struckOut": 0,
"mvp": 5
}
},
Expand All @@ -124,14 +95,12 @@
"gender": "female",
"stats": {
"atBat": 8,
"hits": 2,
"walks": 0,
"runsBattedIn": 0,
"firstBase": 2,
"secondBase": 0,
"thirdBase": 0,
"homeRuns": 0,
"struckOut": 0,
"mvp": 0
}
},
Expand All @@ -141,14 +110,12 @@
"gender": "male",
"stats": {
"atBat": 22,
"hits": 14,
"walks": 2,
"runsBattedIn": 10,
"firstBase": 6,
"secondBase": 2,
"thirdBase": 0,
"homeRuns": 4,
"struckOut": 0,
"mvp": 1
}
},
Expand All @@ -158,48 +125,27 @@
"gender": "male",
"stats": {
"atBat": 22,
"hits": 19,
"walks": 2,
"runsBattedIn": 12,
"firstBase": 5,
"secondBase": 11,
"thirdBase": 1,
"homeRuns": 0,
"struckOut": 0,
"mvp": 1
}
},
{
"name": "Ian R",
"team": "Hackers",
"gender": "male",
"stats": {
"atBat": 0,
"hits": 0,
"walks": 0,
"runsBattedIn": 0,
"firstBase": 0,
"secondBase": 0,
"thirdBase": 0,
"homeRuns": 0,
"struckOut": 0,
"mvp": 0
}
},
{
"name": "Jack",
"team": "Hackers",
"gender": "male",
"stats": {
"atBat": 23,
"hits": 15,
"walks": 1,
"runsBattedIn": 5,
"firstBase": 10,
"secondBase": 4,
"thirdBase": 0,
"homeRuns": 0,
"struckOut": 0,
"mvp": 2
}
},
Expand All @@ -209,14 +155,12 @@
"gender": "male",
"stats": {
"atBat": 5,
"hits": 2,
"walks": 0,
"runsBattedIn": 0,
"firstBase": 2,
"secondBase": 0,
"thirdBase": 0,
"homeRuns": 0,
"struckOut": 0,
"mvp": 0
}
},
Expand All @@ -226,14 +170,12 @@
"gender": "female",
"stats": {
"atBat": 13,
"hits": 8,
"walks": 1,
"runsBattedIn": 2,
"firstBase": 3,
"secondBase": 4,
"thirdBase": 0,
"homeRuns": 0,
"struckOut": 0,
"mvp": 0
}
},
Expand All @@ -243,14 +185,12 @@
"gender": "male",
"stats": {
"atBat": 14,
"hits": 9,
"walks": 0,
"runsBattedIn": 3,
"firstBase": 5,
"secondBase": 2,
"thirdBase": 0,
"homeRuns": 2,
"struckOut": 0,
"mvp": 0
}
},
Expand All @@ -260,14 +200,12 @@
"gender": "female",
"stats": {
"atBat": 5,
"hits": 2,
"walks": 1,
"runsBattedIn": 0,
"firstBase": 0,
"secondBase": 1,
"thirdBase": 0,
"homeRuns": 0,
"struckOut": 0,
"mvp": 0
}
},
Expand All @@ -277,14 +215,12 @@
"gender": "female",
"stats": {
"atBat": 5,
"hits": 3,
"walks": 0,
"runsBattedIn": 3,
"firstBase": 3,
"secondBase": 0,
"thirdBase": 0,
"homeRuns": 0,
"struckOut": 0,
"mvp": 0
}
},
Expand All @@ -294,14 +230,12 @@
"gender": "female",
"stats": {
"atBat": 7,
"hits": 1,
"walks": 0,
"runsBattedIn": 0,
"firstBase": 1,
"secondBase": 0,
"thirdBase": 0,
"homeRuns": 0,
"struckOut": 0,
"mvp": 0
}
},
Expand All @@ -311,14 +245,12 @@
"gender": "male",
"stats": {
"atBat": 2,
"hits": 2,
"walks": 0,
"runsBattedIn": 0,
"firstBase": 1,
"secondBase": 1,
"thirdBase": 0,
"homeRuns": 0,
"struckOut": 0,
"mvp": 0
}
}
Expand Down
Loading

0 comments on commit 79e4043

Please sign in to comment.