示例#1
0
        public double Play(Player other, IEloEngine elo)
        {
            double expectedScore = elo.CalculateExpectedScore(RealElo, other.RealElo); // real expected result
            double score         = evaluateExpectedScore(expectedScore, false);

            this.NumGames++;
            other.NumGames++;
            return(score);
        }
示例#2
0
文件: Ladder.cs 项目: VijayEluri/src
 public Ladder(List <Player> pool, IEloEngine elo)
 {
     this.pool    = pool;
     this.elo     = elo;
     this.tracked = new Dictionary <Player, bool>();
 }