Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if($note_cal_1 <= 2100 || $note_cal_2 <= 2100)
- {
- $K = 32;
- }
- if(($note_cal_1 > 2100 && $note_cal_1 <= 2400) || ($note_cal_2 > 2100 && $note_cal_2 <= 2400))
- {
- $K = 24;
- }
- if($note_cal_1 > 2400 || $note_cal_2 > 2400)
- {
- $K = 16;
- }
- $F = 400;
- $D = $note_cal_1 - $note_cal_2;
- $D = $D - $D - $D;
- if($gagne == 1)
- {
- $note_cal_1 = $note_cal_1 + ($K * (1 - (1 / (1 + pow(10, $D / $F)))));
- $D = $note_cal_2 - $note_cal_1;
- $D = $D - $D - $D;
- $note_cal_2 = $note_cal_2 + ($K * (0 - (1 / (1 + pow(10, $D / $F)))));
- }
- else
- {
- $note_cal_1 = $note_cal_1 + ($K * (0 - (1 / (1 + pow(10, $D / $F)))));
- $D = $note_cal_2 - $note_cal_1;
- $D = $D - $D - $D;
- $note_cal_2 = $note_cal_2 + ($K * (1 - (1 / (1 + pow(10, $D / $F)))));
- }
- if($gagne == 1)
- {
- $nb_vote_cal_1++;
- }
- else
- {
- $nb_vote_cal_2++;
- }
Add Comment
Please, Sign In to add comment