October Handicap Leaderboard

17 Oct, 2020

October handicap

The time listed on this leader board are from a calculation that finds the the racers average time off of the average time per race to give the average off the average time amount. this is then added to the normal race time. In doing so anyone who has an average time that is less than the normal average will have a reduction in their time reflected here. if a driver has a better than average time, their time will be increased. the point system starts at 100 and is decremented by 2 and subsequently increased multiplied by 1.15 (as shown in the code below)

int pointcountdownhc = 100;
            float increment = 2.000F;
            for (int i = 0; i < dshc.Tables[0].Rows.Count; i++)
            {
                dshc.Tables[0].Rows[i][3] = pointcountdownhc;
                pointcountdownhc = Convert.ToInt32(pointcountdownhc - increment);
                increment = increment * 1.150F;
                if (pointcountdownhc <= 0)
                {
                    pointcountdownhc = 1;
                }
            }
«
»

Leave a comment:

Your email address will not be published.