How would you set up a system like the following:
There are 72 sprites (all instances of the same object) in the game that the player interacts with at some point.
For any of these interactions the reaction time is recorded.
When showing statistics to the player they should see the average response time and be able to filter it by certain criteria:
First of all the time frame of the interaction:
Show only the average response time of:
- the current play session
- today
- this week
- this month
- this year
And for any of these calculations only consider records that meet a set of certain conditions.
So for example the player would choose the statistic for:
The average response times from this week, for all interactions that happened in "ArcadeMode" AND playing the game character "Hunter" AND taking place in the "Woods" AND having been lower on health than 30%.
All I know is I will need the date plugin for the times and dates aspect.
But I am unsure about how and where to record the timestamps along with the information about the other criteria. Where would I use arrays, where dictionaries and so on.
Maybe someone has some experience with something of the sort. That would be really helpful! :-)