sanichi-chess_icu 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/lib/player.rb +6 -2
- metadata +2 -2
data/VERSION.yml
CHANGED
data/lib/player.rb
CHANGED
@@ -31,8 +31,12 @@ letters long, will be upcased.
|
|
31
31
|
peter.title # => 'GM'
|
32
32
|
peter.fed # => 'RUS'
|
33
33
|
|
34
|
-
|
35
|
-
|
34
|
+
It is preferable to add results (ICU::Result) to a player via the tournament (ICU::Tournament) object's
|
35
|
+
_add_result_ method rather than the method of the same name belonging to player instances. Doing so
|
36
|
+
allows mirrored results to be added to both players with one method call (e.g. one player won, the
|
37
|
+
other lost). A player's results can later be retieved via the _results_ accessor.
|
38
|
+
|
39
|
+
Total scores is available via the _points_ method.
|
36
40
|
|
37
41
|
peter.points # => 5.5
|
38
42
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sanichi-chess_icu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Orr
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-07-
|
12
|
+
date: 2009-07-12 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|