sanichi-chess_icu 0.4.7 → 0.4.8
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/lib/tournament.rb +5 -4
- data/lib/tournament_krause.rb +2 -1
- metadata +1 -1
data/VERSION.yml
CHANGED
data/lib/tournament.rb
CHANGED
@@ -61,15 +61,16 @@ then there are additional side effects of validating a tournament:
|
|
61
61
|
|
62
62
|
Ranking is consistent if either no players have any rank or if all players have a rank and no player is ranked higher than another player with more points.
|
63
63
|
|
64
|
-
The players in a tournament can be
|
65
|
-
|
64
|
+
The players in a tournament, whose reference numbers can be any set of unique integers (including zero and negative numbers),
|
65
|
+
can be renumbered in order of rank or name. After renumbering the new player numbers will start at 1 and go up to the number
|
66
|
+
of players.
|
66
67
|
|
67
68
|
t.renumber!(:name) # renumber by name
|
68
69
|
t.renumber!(:rank) # renumber by rank
|
69
70
|
t.renumber! # same - rank is the default
|
70
71
|
|
71
|
-
A side effect of renumbering by rank is that if the tournament started without any player
|
72
|
-
with inconsitent
|
72
|
+
A side effect of renumbering by rank is that if the tournament started without any player rankings or
|
73
|
+
with inconsitent rankings, it will be reranked (i.e. the method _rerank_ will be called).
|
73
74
|
|
74
75
|
=end
|
75
76
|
|
data/lib/tournament_krause.rb
CHANGED
@@ -69,7 +69,8 @@ A tournament can be serialized back to Krause format (the reverse of parsing) wi
|
|
69
69
|
|
70
70
|
krause = parser.serialize(tournament)
|
71
71
|
|
72
|
-
The following lists Krause data identification numbers, their description and, where available, their corresponding
|
72
|
+
The following lists Krause data identification numbers, their description and, where available, their corresponding
|
73
|
+
attributes in an ICU::Tournament instance.
|
73
74
|
|
74
75
|
[001 Player record] Use _players_ to get all players or _player_ with a player number to get a single instance.
|
75
76
|
[012 Name] Get or set with _name_. Free text. A tounament name is mandatory.
|