ELO ranking class.
Macros:
Default K coefficient
Enumerations:
Type of results
Typedefs:
None.
Struct CapyElo :
Struct CapyElo's properties:
K coefficient
Struct CapyElo's methods:
Destructor
Get the Elo delta given two Elos and a result. This delta is to be added to the first Elo and substracted to the second.
Input argument(s):
eloA: first Elo
result: result of eloA against eloB (e.g., if result is 'win' it means that eloA has won over eloB)
eloB: second Elo
Output and side effect(s):
Return the Elo delta to be added to eloA and substracted to eloB
Functions:
Create a CapyElo
Output and side effect(s):
Return a CapyElo
Allocate memory for a new CapyElo and create it
Output and side effect(s):
Return a CapyElo
Exception(s):
May raise CapyExc_MallocFailed.
Free the memory used by a CapyElo* and reset '*that' to NULL
Input argument(s):
that: a pointer to the CapyElo to free