chess 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (107) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -0
  3. data/README.md +44 -0
  4. data/Rakefile +6 -7
  5. data/chess.gemspec +1 -1
  6. data/ext/bitboard.c +24 -0
  7. data/ext/board.c +78 -24
  8. data/ext/board.h +4 -2
  9. data/ext/chess.c +216 -196
  10. data/ext/chess.h +1 -0
  11. data/ext/common.c +10 -0
  12. data/ext/game.c +33 -16
  13. data/ext/special.c +14 -11
  14. data/ext/special.h +1 -2
  15. data/lib/chess/exceptions.rb +7 -10
  16. data/lib/chess/game.rb +66 -50
  17. data/lib/chess/gnuchess.rb +19 -25
  18. data/lib/chess/pgn.rb +49 -9
  19. data/lib/chess/utf8_notation.rb +11 -9
  20. data/lib/chess/version.rb +1 -1
  21. data/test/pgn_collection/illegal/0001.pgn +18 -0
  22. data/test/pgn_collection/illegal/0002.pgn +17 -0
  23. data/test/pgn_collection/illegal/0003.pgn +13 -0
  24. data/test/pgn_collection/illegal/0004.pgn +15 -0
  25. data/test/pgn_collection/illegal/0005.pgn +16 -0
  26. data/test/pgn_collection/invalid/0001.pgn +20 -0
  27. data/test/pgn_collection/invalid/0002.pgn +16 -0
  28. data/test/pgn_collection/invalid/0003.pgn +13 -0
  29. data/test/pgn_collection/invalid/0004.pgn +15 -0
  30. data/test/pgn_collection/valid/0001.pgn +6 -7
  31. data/test/pgn_collection/valid/0002.pgn +8 -9
  32. data/test/pgn_collection/valid/0005.pgn +7 -8
  33. data/test/pgn_collection/valid/0009.pgn +14 -15
  34. data/test/pgn_collection/valid/0010.pgn +6 -7
  35. data/test/pgn_collection/valid/0011.pgn +5 -6
  36. data/test/pgn_collection/valid/0012.pgn +0 -1
  37. data/test/pgn_collection/valid/0013.pgn +5 -6
  38. data/test/pgn_collection/valid/0014.pgn +6 -7
  39. data/test/pgn_collection/valid/0020.pgn +6 -7
  40. data/test/pgn_collection/valid/0021.pgn +15 -16
  41. data/test/pgn_collection/valid/0971.pgn +22 -14
  42. data/test/test_big_pgn_collection.rb +12 -5
  43. data/test/test_helper.rb +1 -1
  44. data/test/test_illegal_moves.rb +14 -0
  45. data/test/test_insufficient_material.rb +13 -1
  46. data/test/test_particular_situations.rb +14 -0
  47. data/test/test_pgn.rb +24 -0
  48. data/test/test_pgn_collection.rb +1 -4
  49. metadata +30 -63
  50. data/README.rdoc +0 -44
  51. data/doc/Chess.html +0 -112
  52. data/doc/Chess/BadNotationError.html +0 -107
  53. data/doc/Chess/Board.html +0 -700
  54. data/doc/Chess/CGame.html +0 -1004
  55. data/doc/Chess/Game.html +0 -684
  56. data/doc/Chess/Gnuchess.html +0 -215
  57. data/doc/Chess/IllegalMoveError.html +0 -105
  58. data/doc/Chess/InvalidFenFormatError.html +0 -105
  59. data/doc/Chess/InvalidPgnFormatError.html +0 -105
  60. data/doc/Chess/Pgn.html +0 -309
  61. data/doc/Chess/UTF8Notation.html +0 -174
  62. data/doc/README_rdoc.html +0 -143
  63. data/doc/created.rid +0 -15
  64. data/doc/css/fonts.css +0 -167
  65. data/doc/css/rdoc.css +0 -590
  66. data/doc/fonts/Lato-Light.ttf +0 -0
  67. data/doc/fonts/Lato-LightItalic.ttf +0 -0
  68. data/doc/fonts/Lato-Regular.ttf +0 -0
  69. data/doc/fonts/Lato-RegularItalic.ttf +0 -0
  70. data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
  71. data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
  72. data/doc/images/add.png +0 -0
  73. data/doc/images/arrow_up.png +0 -0
  74. data/doc/images/brick.png +0 -0
  75. data/doc/images/brick_link.png +0 -0
  76. data/doc/images/bug.png +0 -0
  77. data/doc/images/bullet_black.png +0 -0
  78. data/doc/images/bullet_toggle_minus.png +0 -0
  79. data/doc/images/bullet_toggle_plus.png +0 -0
  80. data/doc/images/date.png +0 -0
  81. data/doc/images/delete.png +0 -0
  82. data/doc/images/find.png +0 -0
  83. data/doc/images/loadingAnimation.gif +0 -0
  84. data/doc/images/macFFBgHack.png +0 -0
  85. data/doc/images/package.png +0 -0
  86. data/doc/images/page_green.png +0 -0
  87. data/doc/images/page_white_text.png +0 -0
  88. data/doc/images/page_white_width.png +0 -0
  89. data/doc/images/plugin.png +0 -0
  90. data/doc/images/ruby.png +0 -0
  91. data/doc/images/tag_blue.png +0 -0
  92. data/doc/images/tag_green.png +0 -0
  93. data/doc/images/transparent.png +0 -0
  94. data/doc/images/wrench.png +0 -0
  95. data/doc/images/wrench_orange.png +0 -0
  96. data/doc/images/zoom.png +0 -0
  97. data/doc/index.html +0 -160
  98. data/doc/js/darkfish.js +0 -161
  99. data/doc/js/jquery.js +0 -4
  100. data/doc/js/navigation.js +0 -142
  101. data/doc/js/navigation.js.gz +0 -0
  102. data/doc/js/search.js +0 -109
  103. data/doc/js/search_index.js +0 -1
  104. data/doc/js/search_index.js.gz +0 -0
  105. data/doc/js/searcher.js +0 -229
  106. data/doc/js/searcher.js.gz +0 -0
  107. data/doc/table_of_contents.html +0 -331
@@ -1,215 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <html>
4
- <head>
5
- <meta charset="UTF-8">
6
-
7
- <title>module Chess::Gnuchess - Chess</title>
8
-
9
- <script type="text/javascript">
10
- var rdoc_rel_prefix = "../";
11
- var index_rel_prefix = "../";
12
- </script>
13
-
14
- <script src="../js/jquery.js"></script>
15
- <script src="../js/darkfish.js"></script>
16
-
17
- <link href="../css/fonts.css" rel="stylesheet">
18
- <link href="../css/rdoc.css" rel="stylesheet">
19
-
20
-
21
-
22
- <body id="top" role="document" class="module">
23
- <nav role="navigation">
24
- <div id="project-navigation">
25
- <div id="home-section" role="region" title="Quick navigation" class="nav-section">
26
- <h2>
27
- <a href="../index.html" rel="home">Home</a>
28
- </h2>
29
-
30
- <div id="table-of-contents-navigation">
31
- <a href="../table_of_contents.html#pages">Pages</a>
32
- <a href="../table_of_contents.html#classes">Classes</a>
33
- <a href="../table_of_contents.html#methods">Methods</a>
34
- </div>
35
- </div>
36
-
37
- <div id="search-section" role="search" class="project-section initially-hidden">
38
- <form action="#" method="get" accept-charset="utf-8">
39
- <div id="search-field-wrapper">
40
- <input id="search-field" role="combobox" aria-label="Search"
41
- aria-autocomplete="list" aria-controls="search-results"
42
- type="text" name="search" placeholder="Search" spellcheck="false"
43
- title="Type to search, Up and Down to navigate, Enter to load">
44
- </div>
45
-
46
- <ul id="search-results" aria-label="Search Results"
47
- aria-busy="false" aria-expanded="false"
48
- aria-atomic="false" class="initially-hidden"></ul>
49
- </form>
50
- </div>
51
-
52
- </div>
53
-
54
-
55
-
56
- <div id="class-metadata">
57
-
58
-
59
-
60
-
61
- <!-- Method Quickref -->
62
- <div id="method-list-section" class="nav-section">
63
- <h3>Methods</h3>
64
-
65
- <ul class="link-list" role="directory">
66
-
67
- <li ><a href="#method-i-gnuchess_move">#gnuchess_move</a>
68
-
69
- <li ><a href="#method-i-gnuchess_move-21">#gnuchess_move!</a>
70
-
71
- </ul>
72
- </div>
73
-
74
- </div>
75
- </nav>
76
-
77
- <main role="main" aria-labelledby="module-Chess::Gnuchess">
78
- <h1 id="module-Chess::Gnuchess" class="module">
79
- module Chess::Gnuchess
80
- </h1>
81
-
82
- <section class="description">
83
-
84
- <p>Use <a href="Gnuchess.html">Gnuchess</a> to I.A. <em>(Only a draft)</em> To
85
- use this module, extend a game object with <a
86
- href="Gnuchess.html">Chess::Gnuchess</a>. <a
87
- href="Gnuchess.html">Gnuchess</a> binary have to be installed.</p>
88
-
89
- <pre class="ruby"><span class="ruby-identifier">g</span> = <span class="ruby-constant">Chess</span><span class="ruby-operator">::</span><span class="ruby-constant">Game</span>.<span class="ruby-identifier">new</span>
90
- <span class="ruby-identifier">g</span>.<span class="ruby-identifier">extend</span> <span class="ruby-constant">Chess</span><span class="ruby-operator">::</span><span class="ruby-constant">Gnuchess</span>
91
- <span class="ruby-identifier">g</span>.<span class="ruby-identifier">gnuchess_move!</span>
92
- <span class="ruby-identifier">puts</span> <span class="ruby-identifier">g</span>
93
- </pre>
94
-
95
- </section>
96
-
97
-
98
-
99
-
100
- <section id="5Buntitled-5D" class="documentation-section">
101
-
102
-
103
-
104
-
105
-
106
-
107
-
108
-
109
-
110
- <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
111
- <header>
112
- <h3>Public Instance Methods</h3>
113
- </header>
114
-
115
-
116
- <div id="method-i-gnuchess_move" class="method-detail ">
117
-
118
- <div class="method-heading">
119
- <span class="method-name">gnuchess_move</span><span
120
- class="method-args">()</span>
121
-
122
- <span class="method-click-advice">click to toggle source</span>
123
-
124
- </div>
125
-
126
-
127
- <div class="method-description">
128
-
129
- <p>Return the next move calculated by <a href="Gnuchess.html">Gnuchess</a>. <a
130
- href="Gnuchess.html">Gnuchess</a> must be installed!</p>
131
-
132
-
133
-
134
-
135
- <div class="method-source-code" id="gnuchess_move-source">
136
- <pre><span class="ruby-comment"># File lib/chess/gnuchess.rb, line 15</span>
137
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">gnuchess_move</span>
138
- <span class="ruby-identifier">pipe</span> = <span class="ruby-constant">IO</span>.<span class="ruby-identifier">popen</span>(<span class="ruby-string">&#39;gnuchess -x&#39;</span>, <span class="ruby-string">&#39;r+&#39;</span>)
139
- <span class="ruby-keyword">begin</span>
140
- <span class="ruby-identifier">pipe</span>.<span class="ruby-identifier">puts</span>(<span class="ruby-string">&#39;depth 1&#39;</span>)
141
- <span class="ruby-identifier">pipe</span>.<span class="ruby-identifier">puts</span>(<span class="ruby-string">&#39;manual&#39;</span>)
142
- <span class="ruby-keyword">self</span>.<span class="ruby-identifier">coord_moves</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">m</span><span class="ruby-operator">|</span>
143
- <span class="ruby-identifier">pipe</span>.<span class="ruby-identifier">puts</span>(<span class="ruby-identifier">m</span>)
144
- <span class="ruby-keyword">end</span>
145
- <span class="ruby-identifier">pipe</span>.<span class="ruby-identifier">puts</span>(<span class="ruby-string">&#39;go&#39;</span>)
146
- <span class="ruby-keyword">while</span> <span class="ruby-identifier">line</span> = <span class="ruby-identifier">pipe</span>.<span class="ruby-identifier">gets</span>
147
- <span class="ruby-identifier">raise</span> <span class="ruby-constant">IllegalMoveError</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">line</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-string">&#39;Invalid move&#39;</span>)
148
- <span class="ruby-identifier">match</span> = <span class="ruby-identifier">line</span>.<span class="ruby-identifier">match</span>(<span class="ruby-regexp">/My move is : ([a-h][1-8][a-h][1-8][rkbq]?)/</span>)
149
- <span class="ruby-keyword">return</span> <span class="ruby-identifier">match</span>[<span class="ruby-value">1</span>] <span class="ruby-keyword">if</span> <span class="ruby-identifier">match</span>
150
- <span class="ruby-keyword">end</span>
151
- <span class="ruby-keyword">ensure</span>
152
- <span class="ruby-identifier">pipe</span>.<span class="ruby-identifier">puts</span>(<span class="ruby-string">&#39;quit&#39;</span>)
153
- <span class="ruby-identifier">pipe</span>.<span class="ruby-identifier">close</span>
154
- <span class="ruby-keyword">end</span>
155
- <span class="ruby-keyword">return</span> <span class="ruby-identifier">moves</span>
156
- <span class="ruby-keyword">end</span></pre>
157
- </div>
158
-
159
- </div>
160
-
161
-
162
-
163
-
164
- </div>
165
-
166
-
167
- <div id="method-i-gnuchess_move-21" class="method-detail ">
168
-
169
- <div class="method-heading">
170
- <span class="method-name">gnuchess_move!</span><span
171
- class="method-args">()</span>
172
-
173
- <span class="method-click-advice">click to toggle source</span>
174
-
175
- </div>
176
-
177
-
178
- <div class="method-description">
179
-
180
- <p>Make a move using <a href="Gnuchess.html">Gnuchess</a> engine. This add a
181
- new <a href="Board.html">Board</a> in the <a href="Game.html">Game</a>.
182
- Return the next move calculated by <a href="Gnuchess.html">Gnuchess</a>. <a
183
- href="Gnuchess.html">Gnuchess</a> must be installed!</p>
184
-
185
-
186
-
187
-
188
- <div class="method-source-code" id="gnuchess_move-21-source">
189
- <pre><span class="ruby-comment"># File lib/chess/gnuchess.rb, line 39</span>
190
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">gnuchess_move!</span>
191
- <span class="ruby-identifier">next_move</span> = <span class="ruby-keyword">self</span>.<span class="ruby-identifier">gnuchess_move</span>
192
- <span class="ruby-keyword">self</span>.<span class="ruby-identifier">move</span>(<span class="ruby-identifier">next_move</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">next_move</span>
193
- <span class="ruby-keyword">end</span></pre>
194
- </div>
195
-
196
- </div>
197
-
198
-
199
-
200
-
201
- </div>
202
-
203
-
204
- </section>
205
-
206
- </section>
207
- </main>
208
-
209
-
210
- <footer id="validator-badges" role="contentinfo">
211
- <p><a href="http://validator.w3.org/check/referer">Validate</a>
212
- <p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> 5.1.0.
213
- <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
214
- </footer>
215
-
@@ -1,105 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <html>
4
- <head>
5
- <meta charset="UTF-8">
6
-
7
- <title>class Chess::IllegalMoveError - Chess</title>
8
-
9
- <script type="text/javascript">
10
- var rdoc_rel_prefix = "../";
11
- var index_rel_prefix = "../";
12
- </script>
13
-
14
- <script src="../js/jquery.js"></script>
15
- <script src="../js/darkfish.js"></script>
16
-
17
- <link href="../css/fonts.css" rel="stylesheet">
18
- <link href="../css/rdoc.css" rel="stylesheet">
19
-
20
-
21
-
22
- <body id="top" role="document" class="class">
23
- <nav role="navigation">
24
- <div id="project-navigation">
25
- <div id="home-section" role="region" title="Quick navigation" class="nav-section">
26
- <h2>
27
- <a href="../index.html" rel="home">Home</a>
28
- </h2>
29
-
30
- <div id="table-of-contents-navigation">
31
- <a href="../table_of_contents.html#pages">Pages</a>
32
- <a href="../table_of_contents.html#classes">Classes</a>
33
- <a href="../table_of_contents.html#methods">Methods</a>
34
- </div>
35
- </div>
36
-
37
- <div id="search-section" role="search" class="project-section initially-hidden">
38
- <form action="#" method="get" accept-charset="utf-8">
39
- <div id="search-field-wrapper">
40
- <input id="search-field" role="combobox" aria-label="Search"
41
- aria-autocomplete="list" aria-controls="search-results"
42
- type="text" name="search" placeholder="Search" spellcheck="false"
43
- title="Type to search, Up and Down to navigate, Enter to load">
44
- </div>
45
-
46
- <ul id="search-results" aria-label="Search Results"
47
- aria-busy="false" aria-expanded="false"
48
- aria-atomic="false" class="initially-hidden"></ul>
49
- </form>
50
- </div>
51
-
52
- </div>
53
-
54
-
55
-
56
- <div id="class-metadata">
57
-
58
- <div id="parent-class-section" class="nav-section">
59
- <h3>Parent</h3>
60
-
61
-
62
- <p class="link">StandardError
63
-
64
- </div>
65
-
66
-
67
-
68
-
69
- </div>
70
- </nav>
71
-
72
- <main role="main" aria-labelledby="class-Chess::IllegalMoveError">
73
- <h1 id="class-Chess::IllegalMoveError" class="class">
74
- class Chess::IllegalMoveError
75
- </h1>
76
-
77
- <section class="description">
78
-
79
- <p>This exception will be raised when making an illegal move.</p>
80
-
81
- </section>
82
-
83
-
84
-
85
-
86
- <section id="5Buntitled-5D" class="documentation-section">
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
- </section>
97
- </main>
98
-
99
-
100
- <footer id="validator-badges" role="contentinfo">
101
- <p><a href="http://validator.w3.org/check/referer">Validate</a>
102
- <p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> 5.1.0.
103
- <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
104
- </footer>
105
-
@@ -1,105 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <html>
4
- <head>
5
- <meta charset="UTF-8">
6
-
7
- <title>class Chess::InvalidFenFormatError - Chess</title>
8
-
9
- <script type="text/javascript">
10
- var rdoc_rel_prefix = "../";
11
- var index_rel_prefix = "../";
12
- </script>
13
-
14
- <script src="../js/jquery.js"></script>
15
- <script src="../js/darkfish.js"></script>
16
-
17
- <link href="../css/fonts.css" rel="stylesheet">
18
- <link href="../css/rdoc.css" rel="stylesheet">
19
-
20
-
21
-
22
- <body id="top" role="document" class="class">
23
- <nav role="navigation">
24
- <div id="project-navigation">
25
- <div id="home-section" role="region" title="Quick navigation" class="nav-section">
26
- <h2>
27
- <a href="../index.html" rel="home">Home</a>
28
- </h2>
29
-
30
- <div id="table-of-contents-navigation">
31
- <a href="../table_of_contents.html#pages">Pages</a>
32
- <a href="../table_of_contents.html#classes">Classes</a>
33
- <a href="../table_of_contents.html#methods">Methods</a>
34
- </div>
35
- </div>
36
-
37
- <div id="search-section" role="search" class="project-section initially-hidden">
38
- <form action="#" method="get" accept-charset="utf-8">
39
- <div id="search-field-wrapper">
40
- <input id="search-field" role="combobox" aria-label="Search"
41
- aria-autocomplete="list" aria-controls="search-results"
42
- type="text" name="search" placeholder="Search" spellcheck="false"
43
- title="Type to search, Up and Down to navigate, Enter to load">
44
- </div>
45
-
46
- <ul id="search-results" aria-label="Search Results"
47
- aria-busy="false" aria-expanded="false"
48
- aria-atomic="false" class="initially-hidden"></ul>
49
- </form>
50
- </div>
51
-
52
- </div>
53
-
54
-
55
-
56
- <div id="class-metadata">
57
-
58
- <div id="parent-class-section" class="nav-section">
59
- <h3>Parent</h3>
60
-
61
-
62
- <p class="link">StandardError
63
-
64
- </div>
65
-
66
-
67
-
68
-
69
- </div>
70
- </nav>
71
-
72
- <main role="main" aria-labelledby="class-Chess::InvalidFenFormatError">
73
- <h1 id="class-Chess::InvalidFenFormatError" class="class">
74
- class Chess::InvalidFenFormatError
75
- </h1>
76
-
77
- <section class="description">
78
-
79
- <p>This exception will be raised when an invalid FEN string is used.</p>
80
-
81
- </section>
82
-
83
-
84
-
85
-
86
- <section id="5Buntitled-5D" class="documentation-section">
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
- </section>
97
- </main>
98
-
99
-
100
- <footer id="validator-badges" role="contentinfo">
101
- <p><a href="http://validator.w3.org/check/referer">Validate</a>
102
- <p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> 5.1.0.
103
- <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
104
- </footer>
105
-
@@ -1,105 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <html>
4
- <head>
5
- <meta charset="UTF-8">
6
-
7
- <title>class Chess::InvalidPgnFormatError - Chess</title>
8
-
9
- <script type="text/javascript">
10
- var rdoc_rel_prefix = "../";
11
- var index_rel_prefix = "../";
12
- </script>
13
-
14
- <script src="../js/jquery.js"></script>
15
- <script src="../js/darkfish.js"></script>
16
-
17
- <link href="../css/fonts.css" rel="stylesheet">
18
- <link href="../css/rdoc.css" rel="stylesheet">
19
-
20
-
21
-
22
- <body id="top" role="document" class="class">
23
- <nav role="navigation">
24
- <div id="project-navigation">
25
- <div id="home-section" role="region" title="Quick navigation" class="nav-section">
26
- <h2>
27
- <a href="../index.html" rel="home">Home</a>
28
- </h2>
29
-
30
- <div id="table-of-contents-navigation">
31
- <a href="../table_of_contents.html#pages">Pages</a>
32
- <a href="../table_of_contents.html#classes">Classes</a>
33
- <a href="../table_of_contents.html#methods">Methods</a>
34
- </div>
35
- </div>
36
-
37
- <div id="search-section" role="search" class="project-section initially-hidden">
38
- <form action="#" method="get" accept-charset="utf-8">
39
- <div id="search-field-wrapper">
40
- <input id="search-field" role="combobox" aria-label="Search"
41
- aria-autocomplete="list" aria-controls="search-results"
42
- type="text" name="search" placeholder="Search" spellcheck="false"
43
- title="Type to search, Up and Down to navigate, Enter to load">
44
- </div>
45
-
46
- <ul id="search-results" aria-label="Search Results"
47
- aria-busy="false" aria-expanded="false"
48
- aria-atomic="false" class="initially-hidden"></ul>
49
- </form>
50
- </div>
51
-
52
- </div>
53
-
54
-
55
-
56
- <div id="class-metadata">
57
-
58
- <div id="parent-class-section" class="nav-section">
59
- <h3>Parent</h3>
60
-
61
-
62
- <p class="link">StandardError
63
-
64
- </div>
65
-
66
-
67
-
68
-
69
- </div>
70
- </nav>
71
-
72
- <main role="main" aria-labelledby="class-Chess::InvalidPgnFormatError">
73
- <h1 id="class-Chess::InvalidPgnFormatError" class="class">
74
- class Chess::InvalidPgnFormatError
75
- </h1>
76
-
77
- <section class="description">
78
-
79
- <p>This exception will be raised when a malformed PGN file is loaded.</p>
80
-
81
- </section>
82
-
83
-
84
-
85
-
86
- <section id="5Buntitled-5D" class="documentation-section">
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
- </section>
97
- </main>
98
-
99
-
100
- <footer id="validator-badges" role="contentinfo">
101
- <p><a href="http://validator.w3.org/check/referer">Validate</a>
102
- <p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> 5.1.0.
103
- <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
104
- </footer>
105
-