|
GeneThello Home | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.genethello.ga.Elo
public class Elo
A class to calculate ELO rating of each player.
| Constructor Summary | |
|---|---|
Elo()
|
|
| Method Summary | |
|---|---|
static int |
calcDraw(int a,
int b)
Calculates rating gain RatingGainA when player A draws player B. |
static int |
calcWin(int a,
int b)
Calculates rating gain RatingGainA when player A wins over player B. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Elo()
| Method Detail |
|---|
public static int calcWin(int a,
int b)
a - current ELO rating of player Ab - current ELO rating of player B
public static int calcDraw(int a,
int b)
a - current ELO rating of player Ab - current ELO rating of player B
|
GeneThello Home | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||