mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-11-15 19:37:51 +01:00
Updated towards generalisation
parent
6e3c972a2c
commit
170ca13fc0
@ -15,8 +15,10 @@ require_once('vendor/autoload.php');
|
||||
|
||||
Use JeroenED/Libpairtwo/Sws;
|
||||
|
||||
$sws = Sws::readSws('mycompetition.sws');
|
||||
$ranking = $sws->getTournament()->getRanking();
|
||||
$filereader = IOFactory::createReader('Pairtwo-6');
|
||||
$filereader->read('mycompetition.sws');
|
||||
|
||||
$ranking = $filereader->getTournament()->getRanking();
|
||||
$count = 1;
|
||||
foreach($ranking as $player) {
|
||||
echo $count . ' ' . $player->getName() . '(' . $player.->getPoints() . ')';
|
||||
|
Loading…
Reference in New Issue
Block a user