Closed user202729 closed 5 years ago
@user202729 are you sure old rating can be derived from ratingsDict
. Last time I worked with CF API , contest.ratingChanges
returns only users who participated in a given contest.
Originally, the main feature I want is excluding user (that gives more accurate rating calculation). The old rating computation is just a nice side effect.
I may give an error (cannot calculate old rating for users who did not participate in the contest), or get the user' rating change and deduce it.
Also, I wrote that "leave the handle empty if you did not participate in the contest".
Okay. Then change deduced from handle if empty
to leave empty if you participated
maybe? I think that would be more accurate. And also can you write a proper validation function to check if the use has entered enough data for calculation and show proper error message instead of just All fields required
? Since all fields are not required anymore.
And finally change the sw.js file to change revision
of the files you modified.
About validation:
Before the change, it would be valid to leave the penalty field empty (although that's not documented). Now it isn't.
I tested using required
HTML attribute, but it always show the "not valid" error message instead of only on clicking calculate.
var
. They can be detected with'use strict';
.getSeed
computes, assuming that the user with ratingrating
is not included incontestants
. If they're included, then it's necessary to subtract the win probability from the result.In the old version, with contest ID 1205, the rating change of Benq is computed to be +8 while the real result is -4. In the new version, all the computed rating change for that contest are correct.
The description for some fields are a bit long (and may not fit in the box on some smaller screen), but I don't know how to fix it.