1
0
mirror of https://github.com/avitex/elixir-glicko synced 2024-12-22 08:29:57 +00:00

Improve result docs

This commit is contained in:
avitex 2017-11-29 12:53:31 +11:00
parent 0ebfbe6447
commit 0f013beaa3

View File

@ -1,6 +1,6 @@
defmodule Glicko.Result do
@moduledoc """
Convenience functions for handling a result against an opponent.
Provides convenience functions for handling a result against an opponent.
## Usage
@ -25,6 +25,8 @@ defmodule Glicko.Result do
@doc """
Creates a new result from an opponent rating, opponent rating deviation and score.
Values provided for the opponent rating and opponent rating deviation must be *v2* based.
Supports passing either `:loss`, `:draw`, or `:win` as shortcuts.
"""
@spec new(Player.rating, Player.rating_deviation, score | score_shortcut) :: t