Commit Graph

270 Commits

Author SHA1 Message Date
1e65525b27
Added even more fields 2019-09-25 14:33:52 +02:00
44175fd47d
Merge branch 'develop' into task/reader/swar 2019-09-25 12:33:38 +02:00
16ffacfd2f
BUGFIX: Player:GetId returns elo instead of id 2019-09-25 12:31:39 +02:00
e28cff4e8f
Return id instead of elo
Fixes gh-6
2019-09-25 12:27:41 +02:00
264d2ddf81
Reading out even more fields 2019-09-25 12:18:02 +02:00
455d737ed7
Reading tiebreak and exclusion 2019-08-28 20:49:01 +02:00
f925e08c29
Don't read out old swar versions 2019-08-03 13:51:52 +02:00
f491a86ab6
reading out more fields 2019-08-03 13:51:21 +02:00
d131cf403e
Added double swiss as tournament system 2019-08-03 13:50:34 +02:00
7cb1c512a9
Removed debug output 2019-07-16 16:10:53 +02:00
f3de844a4c
Reading out some more fields 2019-07-16 16:07:20 +02:00
ac908ea814
Reading out date fields 2019-07-16 16:06:50 +02:00
38e67a4261
Added binaryData 2019-07-16 15:58:53 +02:00
d370aad190
Reading out first data 2019-07-15 14:45:49 +02:00
2791a1051f
implemented reader template 2019-07-15 13:47:24 +02:00
21fb6a70bb
Added Swar-4 reader to IOFactory 2019-07-15 13:41:19 +02:00
7f58674f68
MINOR ENHANCEMENT: Better description of Game::class Methods 2019-06-20 23:55:56 +02:00
ae641ade2b
Updated docs 2019-06-20 23:54:50 +02:00
eba9d5788d
Better description of Game::getResult 2019-06-20 23:47:36 +02:00
b93ca781b4
MAJOR BUGFIX: Game::GetResult throws fatal error Cannot access parent:: when current class scope has no parent 2019-06-20 23:30:58 +02:00
2b9337535b
Fixed fatal error
Cannot access parent:: when current class scope has no parent
2019-06-20 23:14:50 +02:00
6324417b0f
CHANGE: Kashdan and Soccer Kashdan are combined in 1 function 2019-06-20 15:39:37 +02:00
922c1cfdbc
ENHANCEMENT: Better Docs generation
* NEW FEATURE: Added clean-dist and clean-dev targets
* ENHANCEMENT: Resized logo in Doxygen for better fit
* ENHANCEMENT: Doxygen takes branch name or version tag as `PROJECT_NUMBER`
* CHANGE: Version tag directly put in distribution filename
* CHANGE: `Tournament::GameExists()` renamed to `Tournament::gameExists()`
* CHANGE: Updated composer metadata
* CHANGE: Some setters changed to fluent setters. (More info: 7aca35057c10d2b982f93a698499c0c01df2fdc5)
2019-06-20 15:32:59 +02:00
e2bc4cb063
Combined kashdan and soccer kashdan 2019-06-20 15:29:02 +02:00
db989487a1
Updated docs 2019-06-20 15:03:37 +02:00
50a97ad572
Renamed GameExists to gameExists
Normalization
2019-06-20 14:41:46 +02:00
ab6afa89ce
Implemented fluent setters 2019-06-20 14:25:44 +02:00
ea365c9e83
Removed Round methods from Game
Probably follow-up to 8fe7bc73ee28fe1cbe572e3ccec97fe40b679188
2019-06-20 13:52:37 +02:00
71838dad55
MAJOR CHANGE: Model Classes has been removed
CHANGE: Replaced PhpDoc with Doxygen
2019-06-19 21:55:20 +02:00
b0d194daca
Better PHPDoc generation. Also removed the models 2019-06-19 21:46:23 +02:00
663951a9cc
BUGFIX: Tournament::getParticipants() did not return a correct value 2019-06-18 16:01:15 +02:00
1f3e381049
Reimplemented getParticipants
Possibly historic field that became unused
2019-06-18 15:57:42 +02:00
f6435320fd
NEW FEATURE: Libpairtwo distribution releases
use make distro to create a distribution
2019-06-18 15:42:23 +02:00
f1b4d68e2f
Fixed exception to be in correct namespace 2019-06-17 15:38:51 +02:00
3ea4a01d20
NEW FEATURE: Soccer Kashdan (aka: kashdan using 3-1-0 scoring) 2019-06-05 15:03:52 +02:00
6e79f3804a
CHANGE: Deprecated sws::class was removed 2019-06-05 15:02:36 +02:00
93752af11c
Merge branch 'task/soccer-kashdan' into task/remove-swsclass 2019-06-05 15:00:30 +02:00
bfa8e062f3
Added SoccerKashdan as supported Tiebreak 2019-06-05 14:57:37 +02:00
1eb02506cf
Sws Class got removed 2019-06-05 14:56:53 +02:00
c692baa1e0
Added total games 2019-06-05 13:38:41 +02:00
3326c978ed
NEW FEATURE: Added possibility to get played games 2019-06-05 13:37:37 +02:00
48313dc256
BUGFIX: Buchholz fixed 2019-06-05 13:24:31 +02:00
2ae173a6c9
Fixed buchholz tiebreak (once again) 2019-06-05 13:15:00 +02:00
605c7819d2
BUGFIX: mutual result did not take care of all previous tiebreaks 2019-06-05 13:06:22 +02:00
0987522121
Mutual result takes care about all previous tiebreaks 2019-06-04 16:49:05 +02:00
112240a038
BUGFIX: Round::getBye() did not return bye players 2019-06-04 15:37:06 +02:00
11b07f07d0
Fixed getBye to return wonBye players 2019-06-04 15:35:21 +02:00
9f0f8999ec
ENHANCEMENT: Offcial kashdan
Reimplemented official kashdan tiebreak. Please review https://github.com/JeroenED/libpairtwo/wiki/3.-Kashdan-tiebreak for more info
2019-06-03 12:32:56 +02:00
91ea4c7a64
Reimplemented official kashdan tiebreak 2019-06-03 12:30:14 +02:00
89e4e6c121
MAJOR UPDATE: Generalization + Tiebreaks 2019-06-01 16:39:58 +02:00
8f812e9776
fixed kashdan 2019-06-01 16:19:57 +02:00
cbf0082b44
fixed cumulative 2019-06-01 15:43:22 +02:00
025a45f5bb
fixed koya 2019-06-01 15:25:01 +02:00
eb46b7908c
fixed buchholzmed 2019-06-01 14:49:33 +02:00
9e4e2073c8
fixed buchholz cut 2019-06-01 14:27:50 +02:00
b2cd821ad8
Some fixes for getPerformance 2019-06-01 13:37:50 +02:00
e28214b9a6
Fixed buchholz for bye or absent pairings 2019-06-01 11:26:33 +02:00
c82e380b73
Merge branch 'bugfix/performance-priority' into bugfix/performance-tiebreak 2019-05-31 22:58:36 +02:00
5ca2fc542b
Added average performance tiebreak by renaming performance
Performance is now equal to Player::getPerformance
2019-05-31 22:50:07 +02:00
0d83e86edb
Added priorityElo to getPerformance and tiebreaks 2019-05-31 22:45:26 +02:00
3da584aebc
Fixed buchholz tiebreak 2019-05-31 15:43:54 +02:00
b2b2f5aef8
Added default elo 2019-05-31 11:38:16 +02:00
c9a19bbcb2
Better names for ids and elos
Also fixed some bugs
2019-05-31 10:59:30 +02:00
a1c669780e
Performance rating unrated 2019-05-31 10:24:06 +02:00
4f5f370c12
Set correct return types 2019-05-30 21:33:27 +02:00
d57a2d053a
Added average performance tiebreak 2019-05-30 21:30:28 +02:00
0179e52eb2
Added cumulative tiebreak 2019-05-30 21:25:37 +02:00
07c3a8ad21
Implemented kashdan 2019-05-30 21:24:22 +02:00
5128d2762e
Implemented Sonneborn-Berger 2019-05-30 21:18:30 +02:00
eba962a11c
Implemented buchholz 2019-05-30 21:14:01 +02:00
587a7a2e08
Implemented Player::getPerformance() 2019-05-30 21:10:31 +02:00
6d4eeff234
Implemented koya tiebreak 2019-05-30 21:07:05 +02:00
4672c91298
Moved points tiebreak to return Player::getPoints() 2019-05-30 21:02:31 +02:00
9bf31b7ec5
Added some useful functions 2019-05-30 21:01:30 +02:00
374e339353
moving constant arrays to a separate class 2019-05-30 20:56:14 +02:00
08f42adc26
Implemented Aro Cut 1 2019-05-30 08:33:52 +02:00
34a5696ff3
Some documentation and bugfixes 2019-05-30 08:33:16 +02:00
97a28a3c4d
Added getElo() and getId() function 2019-05-29 18:24:20 +02:00
d9aebfd90c
Added average rating calculation 2019-05-29 17:57:42 +02:00
04f864416d
Working ARO tiebreak 2019-05-29 17:56:42 +02:00
d49c8d673c
Changed kbsb elo to home elo (not everyone lives in belgium)
Thanks god they don't.
Also changed fide elo to world elo
2019-05-29 17:55:28 +02:00
526be12303
Working tiebreaks
Also:
* Added mutual result
* Reimplemented points tiebreak
2019-05-29 15:48:23 +02:00
f9f5e0d554
GameModel::getResult can also return null
Fixes: Fatal error: Uncaught TypeError: Return value of JeroenED\Libpairtwo\Models\Game::getResult() must be an instance of JeroenED\Libpairtwo\Enums\Gameresult, null returned
2019-05-28 21:06:06 +02:00
6d61d2a650
Added some tiebreaks 2019-05-28 18:07:43 +02:00
865893b30f
Moved tiebreaks to own class 2019-05-28 17:04:53 +02:00
74688ac8b8
Implemented first tiebreaks 2019-05-28 16:26:03 +02:00
4f15eb0c9f
Removed some fields that are not interesting enough 2019-05-28 15:30:55 +02:00
aeb9f76adb
Merge branch 'bugfix/ReaderInterface-no-gettournament' into develop 2019-05-28 14:13:40 +02:00
e92240d56f
Replaced setters by fluent setters 2019-05-28 14:10:42 +02:00
c2f698df8a
Reader-Interface requires getTournament 2019-05-28 13:46:52 +02:00
3b5b42b46d
ENHANCEMENT: Compatibility with Pairtwo-5
Filestructure of pairtwo-5 files are identical to pairtwo-6
2019-05-28 10:20:06 +02:00
0d2b25fbef
BUGFIX: Match not played does not return error 2019-05-28 10:18:58 +02:00
d6c4e99983
Merge branch 'task/pairtwo-5-reader' into develop 2019-05-28 10:17:45 +02:00
efc3c35024
Added compatibility with Pairtwo-5 2019-05-28 10:16:34 +02:00
4076b4e69c
Fixed reading out no result 2019-05-28 10:07:40 +02:00
a70a9fcda3
Code style 2019-05-27 21:46:39 +02:00
057e35f1da
Added reading out the order of tiebreaks 2019-05-27 21:45:19 +02:00
acaef62332
MAJOR ENHANCEMENT: Generalisation
This is a first step in generalisation of the project. Please review https://github.com/JeroenED/libpairtwo/wiki/Converting-your-code-to-the-generalized-format for more info on your code changes
2019-05-27 13:15:49 +02:00
8e06bb21dc
Added link to generalization migration 2019-05-27 13:11:22 +02:00
ba3bbcdb69
Models are abstract 2019-05-27 13:06:35 +02:00
10f658532d
Added Exceptions 2019-05-27 13:01:53 +02:00
6ac07927af
Added IOFactory 2019-05-27 13:01:37 +02:00
8fee2c6746
Deprecated Sws::ReadSws 2019-05-27 13:00:33 +02:00
74d027e8d1
Added Reader for Pairtwo-6 2019-05-27 12:58:53 +02:00
f645636d29
Added reader interface 2019-05-27 12:37:59 +02:00
efe7c0e6b4
NEW FEATURE: Absent and Bye players
2 new functions added:
Round::GetBye(): array and Round::GetAbsent():array

Both returns an array of Pairing objects with Bye or Absent pairings
2019-05-13 20:11:17 +02:00
4f8e524c71
Added getAbsent and getBye functions to Round 2019-05-13 20:03:21 +02:00
0b4bcf5321
ENHANCEMENT: check current round of pairing instead data to check dummy 2019-05-11 15:36:27 +02:00
e181bfefce
Better way to check if pairing is dummy 2019-05-11 15:35:13 +02:00
5abc1ca8d3
ENHANCEMENT: No pairing object if pairing is dummy 2019-05-01 19:56:49 +02:00
f8a8f86ce9
Do not make a pairing object if object is not a pairing 2019-05-01 19:55:37 +02:00
516740643e
BUGFIX: Player::getPairings() return null
PHP Fatal error:  Uncaught TypeError: Return value of JeroenED\Libpairtwo\Models\Player::getPairings() must be of the type array, null returned in vendor/jeroened/libpairtwo/src/Models/Player.php:372
2019-05-01 17:26:21 +02:00
1c2312f258
Added default value to Pairings object 2019-05-01 17:24:06 +02:00
fbe6009bd6
Merge branch 'task/get-player-by-name' into develop 2019-05-01 16:05:06 +02:00
e1388056ca
Added function to get Players by Name 2019-05-01 16:04:37 +02:00
1e6858d18b
New feature: get pairings from round objects 2019-05-01 15:50:44 +02:00
7bfb68da55
Added pairings to round objects 2019-05-01 15:49:12 +02:00
7f0c7c9350
Updated code style 2019-04-25 15:40:16 +02:00
1df8349b46
Updated code style 2019-04-25 15:39:21 +02:00
b265e4c23d
Added pairings to player object 2019-04-25 14:14:40 +02:00
7bafdc6d5f
Updated phpdoc 2019-04-25 14:09:50 +02:00
5625e0c7c0
Reimplemented creation of results 2019-03-20 12:46:46 +01:00
728c25961d
Typo 2019-03-19 20:42:37 +01:00
3f44bc6f01
Not using literal values for Result 2019-03-19 16:47:19 +01:00
d4d774aae6
Typo 2019-03-19 16:42:49 +01:00
66cc09670d
Not using literal values for Color 2019-03-19 16:41:39 +01:00
1496d77866
Not using literal values for Gender 2019-03-19 16:41:39 +01:00
a2a0f99b14
Replaced pairtwo Tournament System Values for generic Values 2019-03-19 16:37:10 +01:00
e0da8a71cd
Replaced Pairtwo Title Values for generic Values 2019-03-19 16:36:49 +01:00
7b6962843c
Replaced Pairtwo Color Values for generic Values 2019-03-19 16:36:49 +01:00
bad50fc75c
Get rid of Pairtwo Values in favor of generic ones 2019-03-04 12:07:43 +01:00
7fb94aaf00
Renamed Sex to Gender 2019-03-04 11:51:06 +01:00
ce6e501043
Implemented reading out round dates 2019-02-12 18:05:37 +01:00
512aebdc70
Fixed reading tournamentyear 2019-02-12 18:04:12 +01:00
5730f2c089
Reading strings as UTF-8
Solves issue GH-1
2019-02-12 15:37:53 +01:00
b61d9d577c
Updated issue_template 2019-02-12 14:33:03 +01:00
d6bcf66b4d
String are being trimmed now
And added default values as well
2019-02-12 14:10:50 +01:00
b478d99d05
Added conversion of pairings into rounds 2019-02-11 22:41:44 +01:00
99ccb56aeb
Updated some more phpdoc 2019-02-11 17:58:58 +01:00
8c6e3b81fa
Fixed code style 2019-02-11 17:37:30 +01:00
64e47ff606
Updated phpdoc 2019-02-11 17:27:26 +01:00
b6c72e9021
Reading out pairings 2019-02-11 16:43:36 +01:00
682cf386b6
Added tournament year and rounddates 2019-02-11 16:42:20 +01:00
7d83534984
Typo 2019-02-06 20:54:07 +01:00
492b9e8d20
Better to set while reading sws 2019-02-06 20:47:46 +01:00
dcca8fe39e
Fixing an issue 2019-02-06 20:34:09 +01:00
d1d4806b0b
Updated to support american sorting 2019-02-06 20:10:52 +01:00
2bc179c0bb
Fixed issue where points are doubled 2019-02-06 20:10:07 +01:00
93125bb79c
Better sorting function 2019-02-06 18:22:25 +01:00
c9d5407f0c
fixed little mistake 2019-02-06 17:56:48 +01:00