Skip to content

Libpairtwo 1.2

Latest
Compare
Choose a tag to compare
@JeroenED JeroenED released this 27 Sep 23:05
· 491 commits to master since this release

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 the Tournament::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 to 0 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 a int 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 )