Skip to content

Instantly share code, notes, and snippets.

@gaboesquivel
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gaboesquivel/fb301a192a78386f6de5 to your computer and use it in GitHub Desktop.
Save gaboesquivel/fb301a192a78386f6de5 to your computer and use it in GitHub Desktop.
game points
{
user_id : 888,
fantasy_tennis_points: 9999,
user_tournaments_points:[
333: {
tournament_id: 333,
total_points: 3000,
name: 'French Open',
user_categories_points: [
{
id: 444,
name: 'Singles Women',
points: 900,
consecutive_wins: 3,
user_phases_points: [
{
id: 444,
name: 'Semifinal'
points: 200,
user_matches_points: [ // limited to 1 game right now...
{
match_id: 9898,
user_id: 76767,
selection: --some player_id--,
points: 200 // formula user_catgory_points.consecutive_wins * 100
}
]
}
]
}
]
} ,
444: { } ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment