Ideally, it should keep the raw results of each game with a timestamp, and a moving average summary. The summary would be essentially a materialized view on the current state of the pool. This would allow the 'undo' function to reach back into the past and update all subsequent games. We could also calculate new summary statistics as the need arises, or try out alternative rating schemes.
This needs a real database solution.
Ideally, it should keep the raw results of each game with a timestamp, and a moving average summary. The summary would be essentially a materialized view on the current state of the pool. This would allow the 'undo' function to reach back into the past and update all subsequent games. We could also calculate new summary statistics as the need arises, or try out alternative rating schemes.
Good use case for Datomic?