WebGame.Game.GetScoreExpected C# (CSharp) Method

GetScoreExpected() public method

public GetScoreExpected ( Player player ) : double
player Player
return double
        public double GetScoreExpected(Player player)
        {
            double scoreExpected = 0;
            foreach (var otherPlayer in Players)
            {
                if (otherPlayer != player)
                    scoreExpected += GenScoreExpected(player.Rating, otherPlayer.Rating);
            }
            scoreExpected /= CurrentPlayers - 1;
            return scoreExpected;
        }