mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-11-22 06:26:57 +01:00
Added average performance tiebreak by renaming performance
Performance is now equal to Player::getPerformance
This commit is contained in:
parent
3da584aebc
commit
5ca2fc542b
@ -20,6 +20,7 @@ class Tiebreak extends Enum
|
|||||||
const Between = "Mutual Result";
|
const Between = "Mutual Result";
|
||||||
const Koya = "Koya";
|
const Koya = "Koya";
|
||||||
const Baumbach = "Most wins"; // Ref: https://en.wikipedia.org/wiki/Tie-breaking_in_Swiss-system_tournaments#Most_wins_(Baumbach) Please tell me why?
|
const Baumbach = "Most wins"; // Ref: https://en.wikipedia.org/wiki/Tie-breaking_in_Swiss-system_tournaments#Most_wins_(Baumbach) Please tell me why?
|
||||||
|
const AveragePerformance = "Average performance";
|
||||||
const Performance = "Performance";
|
const Performance = "Performance";
|
||||||
const Aro = "Average Rating";
|
const Aro = "Average Rating";
|
||||||
const AroCut = "Average Rating Cut";
|
const AroCut = "Average Rating Cut";
|
||||||
|
@ -317,9 +317,12 @@ class Tournament extends Tiebreaks
|
|||||||
case Tiebreak::Cumulative:
|
case Tiebreak::Cumulative:
|
||||||
return $this->calculateCumulative($player);
|
return $this->calculateCumulative($player);
|
||||||
break;
|
break;
|
||||||
case Tiebreak::Performance:
|
case Tiebreak::AveragePerformance:
|
||||||
return $this->calculateAveragePerformance($player);
|
return $this->calculateAveragePerformance($player);
|
||||||
break;
|
break;
|
||||||
|
case Tiebreak::Performance:
|
||||||
|
return $player->getPerformance($this->getPriorityElo());
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user