mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-11-25 15:57:41 +01:00
ENHANCEMENT: Simplified final buchholz calculation
This commit is contained in:
parent
6e43f43a8d
commit
9ddff524d9
@ -6,7 +6,7 @@
|
|||||||
* ENHANCEMENT: `Class::getBinaryData` methods return null if field is non-existent
|
* ENHANCEMENT: `Class::getBinaryData` methods return null if field is non-existent
|
||||||
* CHANGE: `Tournament::getArbiter` accepts a `int` parameter representing the order of the arbiters
|
* CHANGE: `Tournament::getArbiter` accepts a `int` parameter representing the order of the arbiters
|
||||||
* BUGFIX: `Player:GetId` returns elo instead of id
|
* BUGFIX: `Player:GetId` returns elo instead of id
|
||||||
* BUGFIX: `Tournament::CalculateBuchholz` did not return the correct score when player had onplayed rounds
|
* BUGFIX: `Tournament::CalculateBuchholz` did not return the correct score when player had unplayed rounds
|
||||||
|
|
||||||
## v1.1.2 (Release: 21-jun-2019)
|
## v1.1.2 (Release: 21-jun-2019)
|
||||||
* ENHANCEMENT: Added update section to dist/readme.md
|
* ENHANCEMENT: Added update section to dist/readme.md
|
||||||
|
@ -742,10 +742,7 @@ class Tournament
|
|||||||
$intpairings = array_slice($intpairings, $cutlowest);
|
$intpairings = array_slice($intpairings, $cutlowest);
|
||||||
$intpairings = array_slice($intpairings, 0 - $cuthighest);
|
$intpairings = array_slice($intpairings, 0 - $cuthighest);
|
||||||
|
|
||||||
foreach ($intpairings as $intkey => $intpairing) {
|
return array_sum($intpairings);
|
||||||
$tiebreak += $intpairing;
|
|
||||||
}
|
|
||||||
return $tiebreak;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user