I have a pet project I’m working on related to a game in my office. I’ve got a site running on EE, and an iPhone webapp made (using a SAEF) so that as soon as we’re done with a game, I can enter the winner/loser, shots and score and post that to the site right from the iPhone.
I’m finding sports statistics to be tougher query-wise than I thought, in some cases 😊. I’m looking to do things like:
- hot player (player with the longest current winning streak)
- cold player (player with the longest current losing streak)
- Winning percentages (against other players, or in total)
- Other percentages (offensive percentage, defense percentage)
- Various averages (avg shots per game, avg goals per game)
- Eventually, would love to group games into “tournaments” (best of 7)
- will eventually put people in different user groups based on total number of games played
Has anyone else done a site that requires any of these types of stats, or come across any resources for this sort of thing that could be applied to EE? (PHP tournament scripts or any ideas on how to structure a tournament using weblogs, categories or any other method welcome here).
I’m fishing for resources right now - and if someone is a real SQL guru, maybe you should PM me as I’m willing to shell out a little for some quality help (again, PM about that so as to keep that conversation out of the forums…). I have some of the more basic queries worked out - but some of the more complicated averages, winning streaks, and the idea of tournaments are boggling my mind.
Thanks for any help or suggestions!