Example #1
0
        private void CalculateFinalScoreStableFordBrutto(Player p, Course course)
        {
            p.CalcualteAdditionalHandicapeForStableFordNetto();
            for (int i = 0; i < LENGTH_OF_COURSE; i++)
            {
                int tempAddHandicap = 0;

                int tempScore = AdditinalTempScore(p, i, tempAddHandicap, course);

                p.finalScoreStableFordBrutto = p.finalScoreStableFordBrutto + tempScore;
            }
        }
Example #2
0
        private void CalculateFinalScoreStableFordBrutto(Player p, Course course)
        {
            p.CalcualteAdditionalHandicapeForStableFordNetto();
            for (int i = 0; i < LENGTH_OF_COURSE; i++)
            {
                int tempAddHandicap = 0;

                int tempScore = AdditinalTempScore(p, i, tempAddHandicap, course);

                p.finalScoreStableFordBrutto = p.finalScoreStableFordBrutto + tempScore;
            }
        }
Example #3
0
        private void CalculateFinalScoreStableFordNetto(Player p, Course course)
        {
            p.CalcualteAdditionalHandicapeForStableFordNetto();
            for (int i = 0; i < LENGTH_OF_COURSE; i++)
            {
                int tempAddHandicap = 0;
                tempAddHandicap = p.additinalHandicap.additinalForAll;
                if (course.holes[i].hardness <= p.additinalHandicap.amountOfAdditianlHoles)
                {
                    tempAddHandicap = tempAddHandicap + 1;
                }

                int tempScore = AdditinalTempScore(p, i, tempAddHandicap, course);

                p.finalScoreStableFordNetto = p.finalScoreStableFordNetto + tempScore;
            }
        }
Example #4
0
        private void CalculateFinalScoreStableFordNetto(Player p, Course course)
        {
            p.CalcualteAdditionalHandicapeForStableFordNetto();
            for (int i = 0; i < LENGTH_OF_COURSE; i++)
            {
                int tempAddHandicap = 0;
                tempAddHandicap = p.additinalHandicap.additinalForAll;
                if (course.holes[i].hardness <= p.additinalHandicap.amountOfAdditianlHoles)
                {
                    tempAddHandicap = tempAddHandicap + 1;
                }

                int tempScore = AdditinalTempScore(p, i, tempAddHandicap, course);

                p.finalScoreStableFordNetto = p.finalScoreStableFordNetto + tempScore;
            }
        }