1
0
mirror of https://github.com/avitex/elixir-glicko synced 2024-11-22 11:19:58 +00:00
Commit Graph

12 Commits

Author SHA1 Message Date
Mikael Muszynski
c1089996d3 Convert Player (v1/v2) and Result to structs
In an effort to give names to core concepts in the library, replace the
current way of passing around tuples (of varying length and content)
with appropriately named structs.

In the interest of keeping the patch focused: primarily replace internal
implementation of the added struct modules, and keep the interfaces for
creation, conversion (player v1 to v2, and vice versa), and field access
as they currently are.
2024-06-10 13:04:45 +02:00
Mikael Muszynski
e22c34f2ff Run mix format (#1)
Add formatter configuration and run `mix format`.

Additionally, manually replace leading tabs in documentation examples
with four spaces.
2020-01-19 13:58:40 +00:00
avitex
3d5a8e4f89 Add function to calculate draw probability 2017-11-29 14:00:18 +11:00
avitex
71e06435bf Add tests and example for win_probability 2017-11-29 13:10:02 +11:00
avitex
770a7735df Configure credo 2017-11-29 12:11:35 +11:00
avitex
faf5218189 Use tuples exclusively to represent players and results 2017-11-17 11:08:25 +11:00
avitex
b6dd4c2dee Support using tuples 2017-11-16 22:44:01 +11:00
avitex
b8b5b27e2e Handle players that have not played during the rating period 2017-11-16 14:19:44 +11:00
avitex
c80e397073 Improve opts and test 2017-11-16 13:37:56 +11:00
avitex
c96d357812 Initial rating implementation 2017-11-16 12:39:07 +11:00
avitex
6bafa2be0b Add rating_interval 2017-11-15 23:32:47 +11:00
avitex
94e637f9bd Initial commit 2017-11-15 20:32:39 +11:00