1
0
mirror of https://github.com/avitex/elixir-glicko synced 2024-11-13 07:09:56 +00:00
Commit Graph

52 Commits

Author SHA1 Message Date
dependabot[bot]
af8be6b86b
Bump credo from 1.7.6 to 1.7.7
Bumps [credo](https://github.com/rrrene/credo) from 1.7.6 to 1.7.7.
- [Release notes](https://github.com/rrrene/credo/releases)
- [Changelog](https://github.com/rrrene/credo/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rrrene/credo/commits)

---
updated-dependencies:
- dependency-name: credo
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-12 20:07:35 +00:00
Mikael Muszynski
d934a2e30c
Release v0.8.1 2024-06-10 13:56:17 +02:00
dependabot[bot]
76e4a7872c Bump ex_doc from 0.24.2 to 0.34.0
Bumps [ex_doc](https://github.com/elixir-lang/ex_doc) from 0.24.2 to 0.34.0.
- [Release notes](https://github.com/elixir-lang/ex_doc/releases)
- [Changelog](https://github.com/elixir-lang/ex_doc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/elixir-lang/ex_doc/compare/v0.24.2...v0.34.0)

---
updated-dependencies:
- dependency-name: ex_doc
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-10 13:54:21 +02:00
Mikael Muszynski
45066f946b
Release v0.8.0 2024-06-10 13:44:46 +02:00
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
9cb997e2c1 Update algorithm to match the latest Glicko-2 documentation
On 2022-03-22, the Glicko-2 algorithm was updated, with the following
line being added to the [Glicko web page][1]:

> This document has been revised on March 22, 2022, to replace a "<"
> with "<=" in item 4(b) of Step 5 (page 3).

See the [Glicko-2 document][2] for details.

Tests for this change are missing, as at the time of writing I couldn't
figure out a test that only made use of the current public interface.

  [1]: http://glicko.net/glicko.html
  [2]: http://glicko.net/glicko/glicko2.pdf
2024-06-10 13:02:23 +02:00
dependabot-preview[bot]
172f8dd8d0 Upgrade to GitHub-native Dependabot 2024-06-10 13:01:50 +02:00
Mikael Muszynski
636d84b4a9 Update dependency "credo" 2024-06-10 13:00:04 +02:00
dependabot-preview[bot]
a1f0c2f337 Bump ex_doc from 0.22.0 to 0.24.2
Bumps [ex_doc](https://github.com/elixir-lang/ex_doc) from 0.22.0 to 0.24.2.
- [Release notes](https://github.com/elixir-lang/ex_doc/releases)
- [Changelog](https://github.com/elixir-lang/ex_doc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/elixir-lang/ex_doc/compare/v0.22.0...v0.24.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2024-06-10 12:45:33 +02:00
Mikael Muszynski
7297ff6318 Create GitHub Actions worflow for Elixir
Auto-generated code by writing choosing a "recommended Elixir
workflow".
2024-06-10 12:42:15 +02:00
dependabot-preview[bot]
b7b60afbe3
Bump ex_doc from 0.21.3 to 0.22.0 (#11)
Bumps [ex_doc](https://github.com/elixir-lang/ex_doc) from 0.21.3 to 0.22.0.
- [Release notes](https://github.com/elixir-lang/ex_doc/releases)
- [Changelog](https://github.com/elixir-lang/ex_doc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/elixir-lang/ex_doc/compare/v0.21.3...v0.22.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-12 17:17:11 +10:00
dependabot-preview[bot]
5385b26b65
Bump credo from 1.3.2 to 1.4.0 (#10)
Bumps [credo](https://github.com/rrrene/credo) from 1.3.2 to 1.4.0.
- [Release notes](https://github.com/rrrene/credo/releases)
- [Changelog](https://github.com/rrrene/credo/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rrrene/credo/compare/v1.3.2...v1.4.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-04-21 15:50:17 +10:00
dependabot-preview[bot]
e89e29a9a9
Bump credo from 0.8.8 to 1.3.2 (#9)
Bumps [credo](https://github.com/rrrene/credo) from 0.8.8 to 1.3.2.
- [Release notes](https://github.com/rrrene/credo/releases)
- [Changelog](https://github.com/rrrene/credo/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rrrene/credo/compare/v0.8.8...v1.3.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-04-21 01:04:59 +10:00
avitex
d48d2b6967
update to travis.com 2020-04-14 18:36:22 +10:00
avitex
55a08effbc
v0.7.0 2020-02-24 09:22:46 +11:00
Mikael Muszynski
28cea24d66
Fix inaccurate typespecs (#7)
1. `rating`, `rating_deviation`, and `rating_interval` all omit the
   possibility of receiving a `nil` as the second argument.
2. Writing out `Result.t()`  results in `dialyzer` looking for
   `Elixir.Result.t()`, instead of calling the local
   `Elixir.Glicko.Result.t()`.
2020-02-23 22:14:58 +00:00
Mikael Muszynski
93c09273d2
Update ex_doc hex (#6)
Bump the minimum requirement and run `mix deps.update ex_doc`.
2020-02-04 23:07:28 +00:00
Mikael Muszynski
ca76ae6f9a Update inch_ex hex (#5)
Update `inch_ex` hex and add to the `dev` environment
2020-01-27 04:40:17 +00:00
Mikael Muszynski
6e22fcf0b0 Add .credo.exs to .formatter.exs (#4)
Additionally, run `mix format`.
2020-01-19 14:57:32 +00:00
Mikael Muszynski
db54b10e93 Change multi-line do: function definitions to do (#3)
Change the cases where a `do:` is followed by a `mix format` mandated
line break, or if the expression following the `do:` would span multiple
lines anyway.

The only exception to the rule above is the first change in the
changeset, as this was done for the function style of `initial_rating`
to be consistent with `initial_rating_deviation`.
2020-01-19 14:54:18 +00:00
Mikael Muszynski
1175f6b2c2 Update Elixir version (#2)
Update the project wide Elixir requirement to the latest stable version.
Additionally, update the OTP version in Travis to `v22.1`.
2020-01-19 14:43:22 +00:00
James Dyson
452eafc981
Update README and LICENSE 2020-01-19 14:24:52 +00: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
8612b2aa97 Release v0.6.0 2017-11-29 14:04:48 +11:00
avitex
3d5a8e4f89 Add function to calculate draw probability 2017-11-29 14:00:18 +11:00
avitex
bb097fc5de Release v0.5 2017-11-29 13:12:02 +11:00
avitex
71e06435bf Add tests and example for win_probability 2017-11-29 13:10:02 +11:00
avitex
82bd9e54ba Add function to calculate win probability 2017-11-29 13:02:40 +11:00
avitex
0f013beaa3 Improve result docs 2017-11-29 12:53:31 +11:00
avitex
0ebfbe6447 Optimise calculations based on results 2017-11-29 12:49:39 +11:00
avitex
770a7735df Configure credo 2017-11-29 12:11:35 +11:00
avitex
585621b20a Remove internal context 2017-11-29 12:10:37 +11:00
avitex
f3c6189e4a Bump version 2017-11-22 18:33:48 +11:00
avitex
8cc3fd1acb Follow community conventions for typespecs 2017-11-22 18:20:04 +11:00
avitex
1a3cbb9163 Bump version for release 2017-11-17 11:09:31 +11:00
avitex
faf5218189 Use tuples exclusively to represent players and results 2017-11-17 11:08:25 +11:00
avitex
61175818ad Prepare for publish 2017-11-16 22:52:55 +11:00
avitex
b6dd4c2dee Support using tuples 2017-11-16 22:44:01 +11:00
avitex
168ec234dc More documentation, final preparation 2017-11-16 15:18:57 +11:00
avitex
48645e1298 Prepare for release 2017-11-16 14:49:53 +11:00
avitex
50e3349e92 Tidy up 2017-11-16 14:47:05 +11:00
avitex
b2e30a038c Fix travis 2017-11-16 14:22:37 +11:00
avitex
2f100a71ff Add travis 2017-11-16 14:21:00 +11:00
avitex
b8b5b27e2e Handle players that have not played during the rating period 2017-11-16 14:19:44 +11:00
avitex
218ac020fe Flattern opponent in result map 2017-11-16 13:43:03 +11:00
avitex
c80e397073 Improve opts and test 2017-11-16 13:37:56 +11:00
avitex
66133e48d1 Add e to results 2017-11-16 13:12:13 +11:00
avitex
7d46daf078 credo 2017-11-16 12:45:12 +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