sanichi-chess_icu 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +6 -5
- data/VERSION.yml +1 -1
- metadata +1 -1
data/README.rdoc
CHANGED
@@ -12,8 +12,9 @@ For parsing files of chess tournament data into ruby classes.
|
|
12
12
|
|
13
13
|
A tournament (ICU::Tournament) has two or more players (ICU::Player), and each player has one or more results (ICU::Result).
|
14
14
|
|
15
|
-
Tournament objects are created by parsing files of various formats. An instance of a class
|
16
|
-
|
15
|
+
Tournament objects are created by parsing files of various formats. An instance of a class that can handle the format
|
16
|
+
(see below for the available classes) is first created, and then it's parse or parse! method is called with the file's
|
17
|
+
contents as argument.
|
17
18
|
|
18
19
|
data = open('tournament.csv') { |f| f.read }
|
19
20
|
tournament = parser.parse(data)
|
@@ -34,8 +35,8 @@ The file formats supported in the current version are:
|
|
34
35
|
|
35
36
|
=== Foreign CSV
|
36
37
|
|
37
|
-
This is a format
|
38
|
-
|
38
|
+
This is a format used by the ICU[http://icu.ie] ({specification}[http://www.icu.ie/articles/display.php?id=172])
|
39
|
+
for players to submit their individual results in foreign tournaments for domestic rating.
|
39
40
|
It's parsed by instances of ICU::Tournament::ForeignCSV.
|
40
41
|
|
41
42
|
parser = ICU::Tournament::ForeignCSV.new
|
@@ -48,4 +49,4 @@ Future versions of this software will be able to parse more common formats such
|
|
48
49
|
|
49
50
|
== Author
|
50
51
|
|
51
|
-
|
52
|
+
Mark Orr, rating officer for the Irish Chess Union (ICU[http://icu.ie]).
|
data/VERSION.yml
CHANGED