ToransuShoujo / quesoqueue_plus

A queue system for Mario Maker 2
GNU General Public License v3.0
5 stars 3 forks source link

Level Selection History #13

Open liquidnya opened 2 years ago

liquidnya commented 2 years ago

To calculate the average waiting time for level selection, store the history of all selected levels in a file. Having all history data of level selection also allows the calculation of:

Store each selected level together with it's level code, waiting time, username, current time, weighted random selection chance, and maybe more information if applicable. The file to sore that information could be appended by

When reading the file only valid entries can be read, preventing the file from getting corrupt. This can be done by reading line by line and checking the following information:

→ With the sorted list, one can then calculate the stats listed above.

Also sorting is optional just for calculating the average.