yoonthegoon / openskill.hs

Haskell implementation of OpenSkill
MIT License
1 stars 0 forks source link

Implement models' methods #3

Open yoonthegoon opened 5 days ago

yoonthegoon commented 5 days ago

For each model under src/OpenSkill/Models, they have unimplemented methods drawProbability, winProbabilities, and rate.

drawProbability :: m -> Match -> Double
winProbabilities :: m -> Match -> [Double]
rate :: m -> Match -> Match

drawProbability - Probability that result of the match is a draw. winProbabilites - List of probabilities that given team will win the match. rate - New strengths of players given rating of match is ordered best to worst.

Checklist:

Once this is done, it will likely be a major release, bumping the version to 1.0.0.0.

yoonthegoon commented 4 days ago

rate now of form

rate :: m -> [Team] -> [Int] -> [Team]