AIsOfCatan.GameController.GetPoints C# (CSharp) Method

GetPoints() private method

Find out how many victory points a given player has Points are counted as: Settlements give 1 point each Cities give 2 points each Victory point development cards give 1 point each Having the largest army or the longest road give 2 points each.
private GetPoints ( Player player ) : int
player Player The player to test
return int
        private int GetPoints(Player player)
        {
            int points = 0;
            points += (5 - player.SettlementsLeft) * 1;
            points += (4 - player.CitiesLeft) * 2;

            points += player.DevelopmentCards.Count(c => c == DevelopmentCard.VictoryPoint) * 1;

            if (player.Id == largestArmyId) points += 2;
            if (player.Id == longestRoadId) points += 2;

            return points;
        }