The libpairtwo team is happy to announce libpairtwo 1.2
This release brings several changes and bugfixes. The most notable new feature is a reader for swar-4. This new reader makes you able to read out swar-files starting from version 4.
This release candidate contains no breaking changes towards old implementations. However there are a few things to remember while upgrading or reusing your previously written codebase.
- The
swar-4
-reader does not fill every field available in theTournament::class
- Multiple arbiters can now be read from the pairing file. Therefore
Tournament::getArbiter
now accepts a parameter representing the order of importance. Currently it defaults to0
which is the main arbiter and undoes this breaking change. You are highly advised to change this in your implementation.
Notable changes
- NEW READER:
Reader::Swar-4
for reading out files created with SWAR version 4. - NEW FEATURE:
Tournament::getArbiters()
for multiple arbiters in 1 tournament - ENHANCEMENT:
Class::getBinaryData()
methods return null if field is non-existent - ENHANCEMENT: The template in distributions provides a more usable starting implementation
- ENHANCEMENT: The template in distributions is renamed to template.php
- CHANGE:
Tournament::getArbiter()
accepts aint
parameter representing the order of the arbiters - BUGFIX:
Player:getId()
returned elo instead of id - BUGFIX:
Tournament::calculateBuchholz()
did not return the correct score when player had unplayed rounds - BUGFIX:
Tournament::calculateMutualResult()
returned NULL if result was invalid - BUGFIX:
Tournament::calculateBaumbach()
treated bye as won - BUGFIX:
Tournament::calculateAverageRating()
returned NaN if no games were played - BUGFIX: Distributions could be created from a branch other than master
Known issues
- Performance rating gives wrong result ( GH-5 )