Move sports presets class

This commit is contained in:
Brian Miyaji
2014-05-01 16:31:21 +10:00
parent 8344fa2748
commit b2cc43c134
10 changed files with 253 additions and 11 deletions

46
presets/soccer.json Normal file
View File

@@ -0,0 +1,46 @@
{
"sport": "soccer",
"id": "premier-league",
"name": "Premier League",
"outcomes": [
"W",
"D",
"L"
],
"results": [
"1st Half",
"2nd Half",
"Goals"
],
"performance": [
"Goals",
"Assists",
"Fouls",
"Yellow Cards",
"Red Cards"
],
"columns": [
{ "name" : "P", "equation" : "$events" },
{ "name" : "W", "equation" : "$w" },
{ "name" : "D", "equation" : "$d" },
{ "name" : "L", "equation" : "$l" },
{ "name" : "GF", "equation" : "$goalsfor" },
{ "name" : "GA", "equation" : "$goalsagainst" },
{ "name" : "GD", "equation" : "$goalsfor - $goalsagainst" },
{ "name" : "Pts", "equation" : "$w * 3 + $d" }
],
"metrics": [
"Height",
"Weight"
],
"statistics": [
{ "name" : "Appearances", "equation" : "$events" }
{ "name" : "Average Goals per Match", "equation" : "$goals / $events" }
{ "name" : "Win Ratio", "equation" : "$w / $events" }
{ "name" : "Played", "equation" : "$eventsplayed" }
{ "name" : "Played", "equation" : "$eventsplayed" }
{ "name" : "Played", "equation" : "$eventsplayed" }
{ "name" : "Played", "equation" : "$eventsplayed" }
{ "name" : "Played", "equation" : "$eventsplayed" }
]
}