Create a stats module to keep track of a user's practice stats
Created by: milindvishnoi
Overview
We'll create a StatsModule that deals with the logic and storage of user stats. This module can be be used from across the app.
The Stats module will take care of:
-
Percentage Of Correct Questions #18 (closed) -
# of Questions answered #19 (closed) -
Time spent practicing #20 (closed)
Behaviour
When a user answers a question correctly, the stats module would behave as follows:
- For the MathConcept and the Total Stats:
- Update the total count
- Update the time spent
- Update the correct count
Edited by Arsala Grey