-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rate games accounting for first move advantage (fix #6818) #16281
Closed
Closed
Changes from 1 commit
Commits
Show all changes
53 commits
Select commit
Hold shift + click to select a range
d9d4b2a
Rate games with first move advantage (fix #6818)
ddugovic aa180ce
Code cleanup (reorder parameters)
ddugovic 6194f07
Allow advantage even for BinaryResult
ddugovic 1f2aff7
Code cleanup
ddugovic 31ce96c
Code cleanup
ddugovic d22d638
Reduce first move advantage to 7.786 Elo
ddugovic 8b5182f
Merge branch 'master' into glicko-first-move
ornicar 759d6d4
Merge branch 'master' into glicko-first-move
ornicar e3ee697
Merge branch 'master' into glicko-first-move
ornicar 3f6bbb6
sbt scalafmtAll
ornicar 09692bf
Remove function getParticipants
ddugovic 697a23b
sbt scalafmtAll
ddugovic 421560c
Merge branch 'master' into glicko-first-move
ornicar da2b525
scala tweaks while reviewing
ornicar ef02272
type safety for glicko2.ColorAdvantage
ornicar d31bc4a
Rename GameResult to DuelResult
ddugovic 300d191
Merge branch 'master' into glicko-first-move
ornicar 2742c8c
Define crazyhouse first move advantage as 15.171 Elo
ddugovic 887fea5
Merge branch 'master' into glicko-first-move
ornicar 3e254fd
fix round perf updater doesn't use color advantages
ornicar 8e89323
tweak scala imports
ornicar 657c1e6
move color advantage constants
ornicar aaf28c4
Merge branch 'master' into glicko-first-move
ornicar e4195d4
Merge branch 'master' into glicko-first-move
ornicar 49a6d9e
Revert tutor changes (WIP)
ddugovic 69b6e34
Reintroduce FloatingResult
ddugovic 41a260b
Fix compile errors
ddugovic 9e31c15
Add code comment (lack of unit interval type)
ddugovic 9ea827f
Merge branch 'master' into glicko-first-move
ornicar 3e92964
unused code and scala syntax
ornicar f6e8bb4
better recover from erased users
ornicar 850f2f8
rename Glicko.calculator
ornicar 2774b03
use chess.Outcome for glicko Result
ornicar 685e069
Delete bug (WIP)
ddugovic 2f0db66
Delete bug (WIP)
ddugovic fad133d
Delete bug (WIP)
ddugovic 6270982
Delete bug
ddugovic 3083ac3
Attempt to fix type errors
ddugovic 82a7c74
Attempt to fix type errors
ddugovic 31543bd
Attempt to fix type errors
ddugovic 32e91cf
Attempt to fix type errors
ddugovic 3f71c58
Attempt to fix type errors
ddugovic 85ecdac
Attempt to fix type errors
ddugovic f9e34be
Attempt to fix type errors
ddugovic d10fc58
Attempt to fix type errors
ddugovic 0b4948e
scalafmtAll
ddugovic 1bc6e04
Attempt to fix type errors
ddugovic aa374d3
Strongly type result color
ddugovic 22a850a
Make RatingPeriodResults immutable
ddugovic e366158
Revert "Make RatingPeriodResults immutable"
ddugovic 485d459
Make Rating immutable
ddugovic 9aecdde
Rating facade WIP
ddugovic 8b752af
Rating facade
ddugovic File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what the fudge... there was a horrible bug here.
was completely wrong here, as the constructor goes
RatingCalculator(tau: Double = 0.75d, ratingPeriodsPerDay: Double = 0)
.And that's what happens when we use weak types like
Double
. Arguments get swapped during some code change and no-one notices.Gonna change these to proper
opaque type
so that it doesn't happen again.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Goodness, that is quite a mess and I feel somewhat bad for having introduced it years ago.
Parameter
tau
being near-zero may have caused solvers' volatility to increase slower when on a hot streak:Parameter
ratingPeriodsPerDay
being0;75d
instead of0.21436d
may have caused solvers' RD to increase faster.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that I wasn't blaming you for the bug. In fact I didn't check who introduced it and assumed it was me.
Thanks for fixing it tho.