chess 0.0.9 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -1
- data/Rakefile +1 -0
- data/doc/apple-touch-icon.png +0 -0
- data/doc/classes/Chess.html +162 -0
- data/doc/classes/Chess/BadNotationError.html +84 -0
- data/doc/classes/Chess/Board.html +795 -0
- data/doc/classes/Chess/CGame.html +1168 -0
- data/doc/classes/Chess/Game.html +775 -0
- data/doc/classes/Chess/Gnuchess.html +206 -0
- data/doc/classes/Chess/IllegalMoveError.html +82 -0
- data/doc/classes/Chess/InvalidFenFormatError.html +82 -0
- data/doc/classes/Chess/InvalidPgnFormatError.html +82 -0
- data/doc/classes/Chess/Pgn.html +332 -0
- data/doc/classes/Chess/UTF8Notation.html +175 -0
- data/doc/created.rid +15 -0
- data/doc/css/github.css +123 -0
- data/doc/css/main.css +323 -0
- data/doc/css/panel.css +384 -0
- data/doc/css/reset.css +48 -0
- data/doc/favicon.ico +0 -0
- data/doc/files/README_rdoc.html +122 -0
- data/doc/files/ext/bitboard_c.html +68 -0
- data/doc/files/ext/board_c.html +68 -0
- data/doc/files/ext/chess_c.html +68 -0
- data/doc/files/ext/common_c.html +68 -0
- data/doc/files/ext/game_c.html +68 -0
- data/doc/files/ext/special_c.html +68 -0
- data/doc/files/lib/chess/exceptions_rb.html +94 -0
- data/doc/files/lib/chess/game_rb.html +84 -0
- data/doc/files/lib/chess/gnuchess_rb.html +84 -0
- data/doc/files/lib/chess/pgn_rb.html +84 -0
- data/doc/files/lib/chess/utf8_notation_rb.html +84 -0
- data/doc/files/lib/chess/version_rb.html +85 -0
- data/doc/files/lib/chess_rb.html +84 -0
- data/doc/i/arrows.png +0 -0
- data/doc/i/results_bg.png +0 -0
- data/doc/i/tree_bg.png +0 -0
- data/doc/index.html +13 -0
- data/doc/js/highlight.pack.js +1 -0
- data/doc/js/jquery-1.3.2.min.js +19 -0
- data/doc/js/jquery-effect.js +593 -0
- data/doc/js/main.js +24 -0
- data/doc/js/navigation.js +142 -0
- data/doc/js/search_index.js +1 -0
- data/doc/js/searchdoc.js +449 -0
- data/doc/js/searcher.js +228 -0
- data/doc/panel/index.html +73 -0
- data/doc/panel/links.html +34 -0
- data/doc/panel/tree.js +1 -0
- data/ext/chess.c +82 -33
- data/ext/chess.h +1 -1
- data/ext/common.c +1 -1
- data/ext/common.h +1 -1
- data/ext/game.c +7 -6
- data/ext/game.h +1 -1
- data/lib/chess/exceptions.rb +2 -1
- data/lib/chess/game.rb +18 -5
- data/lib/chess/gnuchess.rb +1 -1
- data/lib/chess/utf8_notation.rb +1 -0
- data/lib/chess/version.rb +1 -1
- metadata +50 -3
data/doc/created.rid
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
Mon, 21 Mar 2016 01:23:33 +0100
|
2
|
+
README.rdoc Mon, 21 Mar 2016 01:23:15 +0100
|
3
|
+
lib/chess.rb Mon, 21 Mar 2016 01:23:15 +0100
|
4
|
+
lib/chess/exceptions.rb Mon, 21 Mar 2016 01:23:15 +0100
|
5
|
+
lib/chess/game.rb Mon, 21 Mar 2016 01:23:15 +0100
|
6
|
+
lib/chess/gnuchess.rb Mon, 21 Mar 2016 01:23:15 +0100
|
7
|
+
lib/chess/pgn.rb Mon, 21 Mar 2016 01:23:15 +0100
|
8
|
+
lib/chess/utf8_notation.rb Mon, 21 Mar 2016 01:23:15 +0100
|
9
|
+
lib/chess/version.rb Mon, 21 Mar 2016 01:23:15 +0100
|
10
|
+
ext/bitboard.c Mon, 21 Mar 2016 01:23:15 +0100
|
11
|
+
ext/board.c Mon, 21 Mar 2016 01:23:15 +0100
|
12
|
+
ext/chess.c Mon, 21 Mar 2016 01:23:15 +0100
|
13
|
+
ext/common.c Mon, 21 Mar 2016 01:23:15 +0100
|
14
|
+
ext/game.c Mon, 21 Mar 2016 01:23:15 +0100
|
15
|
+
ext/special.c Mon, 21 Mar 2016 01:23:15 +0100
|
data/doc/css/github.css
ADDED
@@ -0,0 +1,123 @@
|
|
1
|
+
/*
|
2
|
+
|
3
|
+
github.com style (c) Vasily Polovnyov <vast@whiteants.net>
|
4
|
+
|
5
|
+
*/
|
6
|
+
|
7
|
+
pre .comment,
|
8
|
+
pre .template_comment,
|
9
|
+
pre .diff .header,
|
10
|
+
pre .javadoc {
|
11
|
+
color: #998;
|
12
|
+
font-style: italic
|
13
|
+
}
|
14
|
+
|
15
|
+
pre .keyword,
|
16
|
+
pre .css .rule .keyword,
|
17
|
+
pre .winutils,
|
18
|
+
pre .javascript .title,
|
19
|
+
pre .lisp .title,
|
20
|
+
pre .subst {
|
21
|
+
color: #000;
|
22
|
+
font-weight: bold
|
23
|
+
}
|
24
|
+
|
25
|
+
pre .number,
|
26
|
+
pre .hexcolor {
|
27
|
+
color: #40a070
|
28
|
+
}
|
29
|
+
|
30
|
+
pre .string,
|
31
|
+
pre .tag .value,
|
32
|
+
pre .phpdoc,
|
33
|
+
pre .tex .formula {
|
34
|
+
color: #d14
|
35
|
+
}
|
36
|
+
|
37
|
+
pre .title,
|
38
|
+
pre .id {
|
39
|
+
color: #900;
|
40
|
+
font-weight: bold
|
41
|
+
}
|
42
|
+
|
43
|
+
pre .javascript .title,
|
44
|
+
pre .lisp .title,
|
45
|
+
pre .subst {
|
46
|
+
font-weight: normal
|
47
|
+
}
|
48
|
+
|
49
|
+
pre .class .title,
|
50
|
+
pre .haskell .label,
|
51
|
+
pre .tex .command {
|
52
|
+
color: #458;
|
53
|
+
font-weight: bold
|
54
|
+
}
|
55
|
+
|
56
|
+
pre .tag,
|
57
|
+
pre .tag .title,
|
58
|
+
pre .rules .property,
|
59
|
+
pre .django .tag .keyword {
|
60
|
+
color: #000080;
|
61
|
+
font-weight: normal
|
62
|
+
}
|
63
|
+
|
64
|
+
pre .attribute,
|
65
|
+
pre .variable,
|
66
|
+
pre .instancevar,
|
67
|
+
pre .lisp .body {
|
68
|
+
color: #008080
|
69
|
+
}
|
70
|
+
|
71
|
+
pre .regexp {
|
72
|
+
color: #009926
|
73
|
+
}
|
74
|
+
|
75
|
+
pre .class {
|
76
|
+
color: #458;
|
77
|
+
font-weight: bold
|
78
|
+
}
|
79
|
+
|
80
|
+
pre .symbol,
|
81
|
+
pre .ruby .symbol .string,
|
82
|
+
pre .ruby .symbol .keyword,
|
83
|
+
pre .ruby .symbol .keymethods,
|
84
|
+
pre .lisp .keyword,
|
85
|
+
pre .tex .special,
|
86
|
+
pre .input_number {
|
87
|
+
color: #990073
|
88
|
+
}
|
89
|
+
|
90
|
+
pre .builtin,
|
91
|
+
pre .built_in,
|
92
|
+
pre .lisp .title {
|
93
|
+
color: #0086b3
|
94
|
+
}
|
95
|
+
|
96
|
+
pre .preprocessor,
|
97
|
+
pre .pi,
|
98
|
+
pre .doctype,
|
99
|
+
pre .shebang,
|
100
|
+
pre .cdata {
|
101
|
+
color: #999;
|
102
|
+
font-weight: bold
|
103
|
+
}
|
104
|
+
|
105
|
+
pre .deletion {
|
106
|
+
background: #fdd
|
107
|
+
}
|
108
|
+
|
109
|
+
pre .addition {
|
110
|
+
background: #dfd
|
111
|
+
}
|
112
|
+
|
113
|
+
pre .diff .change {
|
114
|
+
background: #0086b3
|
115
|
+
}
|
116
|
+
|
117
|
+
pre .chunk {
|
118
|
+
color: #aaa
|
119
|
+
}
|
120
|
+
|
121
|
+
pre .tex .formula {
|
122
|
+
opacity: 0.5;
|
123
|
+
}
|
data/doc/css/main.css
ADDED
@@ -0,0 +1,323 @@
|
|
1
|
+
body {
|
2
|
+
font-family: "Helvetica Neue", Arial, sans-serif;
|
3
|
+
background: #FFF;
|
4
|
+
color: #000;
|
5
|
+
margin: 0px;
|
6
|
+
font-size: 0.82em;
|
7
|
+
line-height: 1.25em;
|
8
|
+
}
|
9
|
+
|
10
|
+
a {
|
11
|
+
color: #00F;
|
12
|
+
text-decoration: none;
|
13
|
+
}
|
14
|
+
|
15
|
+
a:hover {
|
16
|
+
color: #333;
|
17
|
+
background: #FE8;
|
18
|
+
}
|
19
|
+
|
20
|
+
p {
|
21
|
+
margin-bottom: 1em;
|
22
|
+
}
|
23
|
+
|
24
|
+
h1 {
|
25
|
+
font-size: 2.1em;
|
26
|
+
font-weight: normal;
|
27
|
+
line-height: 1.2em;
|
28
|
+
margin: 1.4em 0 0.7em 0;
|
29
|
+
}
|
30
|
+
|
31
|
+
h2 {
|
32
|
+
font-size: 1.6em;
|
33
|
+
margin: 1.8em 0 0.8em 0;
|
34
|
+
font-weight: normal;
|
35
|
+
line-height: 1.2em;
|
36
|
+
}
|
37
|
+
|
38
|
+
h3 {
|
39
|
+
font-size: 1.4em;
|
40
|
+
color:#555;
|
41
|
+
margin: 1.4em 0 0.7em 0;
|
42
|
+
font-weight: normal;
|
43
|
+
}
|
44
|
+
|
45
|
+
h4 {
|
46
|
+
margin: 1.4em 0 0.5em 0;
|
47
|
+
font-size: 1em;
|
48
|
+
}
|
49
|
+
|
50
|
+
table
|
51
|
+
{
|
52
|
+
margin-bottom: 1em;
|
53
|
+
}
|
54
|
+
|
55
|
+
td, th
|
56
|
+
{
|
57
|
+
padding: 0 0.7em 0.3em 0;
|
58
|
+
}
|
59
|
+
|
60
|
+
th
|
61
|
+
{
|
62
|
+
font-weight: bold;
|
63
|
+
}
|
64
|
+
|
65
|
+
.clear
|
66
|
+
{
|
67
|
+
clear: both;
|
68
|
+
width: 0; height: 0;
|
69
|
+
}
|
70
|
+
|
71
|
+
dt
|
72
|
+
{
|
73
|
+
margin-bottom: 0.3em;
|
74
|
+
font-weight: bold;
|
75
|
+
}
|
76
|
+
|
77
|
+
dd
|
78
|
+
{
|
79
|
+
margin-left: 2em;
|
80
|
+
margin-bottom: 1em;
|
81
|
+
}
|
82
|
+
|
83
|
+
dd p
|
84
|
+
{
|
85
|
+
margin-top: 0.6em;
|
86
|
+
}
|
87
|
+
|
88
|
+
li
|
89
|
+
{
|
90
|
+
margin: 0 0 0.5em 2em;
|
91
|
+
}
|
92
|
+
|
93
|
+
.banner
|
94
|
+
{
|
95
|
+
background: #EDF3FE;
|
96
|
+
border-bottom: 1px solid #ccc;
|
97
|
+
padding: 1em 2em 0.5em 2em;
|
98
|
+
}
|
99
|
+
.banner h1
|
100
|
+
{
|
101
|
+
font-size: 1.2em;
|
102
|
+
margin: 0;
|
103
|
+
}
|
104
|
+
|
105
|
+
.banner h1 .type
|
106
|
+
{
|
107
|
+
font-size: 0.833em;
|
108
|
+
display:block;
|
109
|
+
}
|
110
|
+
|
111
|
+
.banner h1 .type,
|
112
|
+
.banner h1 .parent
|
113
|
+
{
|
114
|
+
color: #666;
|
115
|
+
}
|
116
|
+
|
117
|
+
.banner ul
|
118
|
+
{
|
119
|
+
margin-top: 0.3em;
|
120
|
+
margin-bottom: 0;
|
121
|
+
font-size: 0.85em;
|
122
|
+
}
|
123
|
+
|
124
|
+
.banner li
|
125
|
+
{
|
126
|
+
list-style: none;
|
127
|
+
margin-left: 0;
|
128
|
+
margin-bottom: 0;
|
129
|
+
}
|
130
|
+
|
131
|
+
pre
|
132
|
+
{
|
133
|
+
margin-bottom: 1em;
|
134
|
+
}
|
135
|
+
|
136
|
+
.methods dt
|
137
|
+
{
|
138
|
+
width: 1em;
|
139
|
+
font-size: 1.5em;
|
140
|
+
color:#AAA;
|
141
|
+
position: absolute;
|
142
|
+
font-weight: normal;
|
143
|
+
margin: 0;
|
144
|
+
}
|
145
|
+
|
146
|
+
.methods dd
|
147
|
+
{
|
148
|
+
margin-left: 2.5em;
|
149
|
+
min-height: 1.8em;
|
150
|
+
-height: 1.8em;
|
151
|
+
padding-bottom: 0.8em;
|
152
|
+
}
|
153
|
+
|
154
|
+
|
155
|
+
.methods ul li
|
156
|
+
{
|
157
|
+
margin-right: 0.7em;
|
158
|
+
margin-left: 0;
|
159
|
+
list-style: none;
|
160
|
+
display: inline;
|
161
|
+
}
|
162
|
+
|
163
|
+
#content {
|
164
|
+
margin: 2em;
|
165
|
+
margin-left: 3.5em;
|
166
|
+
margin-right: 3.5em;
|
167
|
+
}
|
168
|
+
|
169
|
+
|
170
|
+
.sectiontitle {
|
171
|
+
margin-top: 2em;
|
172
|
+
margin-bottom: 1.3em;
|
173
|
+
margin-left: -1.2em;
|
174
|
+
font-size: 1.2em;
|
175
|
+
padding: 0 0 0.25em 0;
|
176
|
+
font-weight: bold;
|
177
|
+
border-bottom: 1px solid #000;
|
178
|
+
}
|
179
|
+
|
180
|
+
.contenttitle {
|
181
|
+
margin-top: 4em;
|
182
|
+
margin-bottom: 1.3em;
|
183
|
+
margin-left: -0.9em;
|
184
|
+
font-size: 1.6em;
|
185
|
+
padding: 0 0 0.25em 0;
|
186
|
+
font-weight: bold;
|
187
|
+
}
|
188
|
+
|
189
|
+
.attr-rw {
|
190
|
+
padding-right: 1em;
|
191
|
+
text-align: center;
|
192
|
+
color: #055;
|
193
|
+
}
|
194
|
+
|
195
|
+
.attr-name {
|
196
|
+
font-weight: bold;
|
197
|
+
padding-right: 1em;
|
198
|
+
}
|
199
|
+
|
200
|
+
.attr-desc {
|
201
|
+
}
|
202
|
+
|
203
|
+
tt {
|
204
|
+
font-size: 1.15em;
|
205
|
+
}
|
206
|
+
|
207
|
+
.attr-value {
|
208
|
+
font-family: monospace;
|
209
|
+
padding-left: 1em;
|
210
|
+
font-size: 1.15em;
|
211
|
+
}
|
212
|
+
|
213
|
+
.dyn-source {
|
214
|
+
display: none;
|
215
|
+
background: #fffde8;
|
216
|
+
color: #000;
|
217
|
+
border: #ffe0bb dotted 1px;
|
218
|
+
margin: 0.5em 2em 0.5em 0;
|
219
|
+
padding: 0.5em;
|
220
|
+
}
|
221
|
+
|
222
|
+
.dyn-source .cmt {
|
223
|
+
color: #00F;
|
224
|
+
font-style: italic;
|
225
|
+
}
|
226
|
+
|
227
|
+
.dyn-source .kw {
|
228
|
+
color: #070;
|
229
|
+
font-weight: bold;
|
230
|
+
}
|
231
|
+
|
232
|
+
.description pre {
|
233
|
+
padding: 0.5em;
|
234
|
+
border: #ffe0bb dotted 1px;
|
235
|
+
background: #fffde8;
|
236
|
+
}
|
237
|
+
|
238
|
+
.method {
|
239
|
+
margin-bottom: 2em;
|
240
|
+
}
|
241
|
+
.method .description,
|
242
|
+
.method .sourcecode
|
243
|
+
{
|
244
|
+
margin-left: 1.2em;
|
245
|
+
}
|
246
|
+
.method h4
|
247
|
+
{
|
248
|
+
border-bottom: 1px dotted #999;
|
249
|
+
padding: 0 0 0.2em 0;
|
250
|
+
margin-bottom: 0.8em;
|
251
|
+
font-size: 1.1em;
|
252
|
+
color:#333;
|
253
|
+
}
|
254
|
+
.method .method-title {
|
255
|
+
border-bottom: 1px dotted #666;
|
256
|
+
padding: 0 0 0.15em 0;
|
257
|
+
margin: 0 0 0.5em 0;
|
258
|
+
font-size: 1.2em;
|
259
|
+
line-height: 1.25em;
|
260
|
+
position: relative;
|
261
|
+
}
|
262
|
+
|
263
|
+
.method .method-title a.permalink {
|
264
|
+
position: absolute;
|
265
|
+
font-size: 0.75em;
|
266
|
+
right: 0;
|
267
|
+
}
|
268
|
+
|
269
|
+
.method .sourcecode p.source-link {
|
270
|
+
text-indent: 0em;
|
271
|
+
margin-top: 0.5em;
|
272
|
+
}
|
273
|
+
|
274
|
+
.method .aka {
|
275
|
+
margin-top: 0.3em;
|
276
|
+
margin-left: 1em;
|
277
|
+
font-style: italic;
|
278
|
+
text-indent: 2em;
|
279
|
+
}
|
280
|
+
|
281
|
+
.method .source-link
|
282
|
+
{
|
283
|
+
font-size: 0.85em;
|
284
|
+
}
|
285
|
+
|
286
|
+
.ruby-constant {
|
287
|
+
color: teal;
|
288
|
+
}
|
289
|
+
.ruby-keyword {
|
290
|
+
color: #000;
|
291
|
+
font-weight: bold
|
292
|
+
}
|
293
|
+
.ruby-title {
|
294
|
+
color: #900;
|
295
|
+
font-weight: bold;
|
296
|
+
}
|
297
|
+
.ruby-ivar {
|
298
|
+
color: teal;
|
299
|
+
}
|
300
|
+
.ruby-operator {
|
301
|
+
color: #000;
|
302
|
+
font-weight: bold
|
303
|
+
}
|
304
|
+
.ruby-identifier {
|
305
|
+
color: #000;
|
306
|
+
}
|
307
|
+
.ruby-string,
|
308
|
+
.ruby-node {
|
309
|
+
color: #D14;
|
310
|
+
}
|
311
|
+
.ruby-comment {
|
312
|
+
color: #998;
|
313
|
+
font-style: italic;
|
314
|
+
}
|
315
|
+
.ruby-regexp {
|
316
|
+
color: #009926;
|
317
|
+
}
|
318
|
+
.ruby-value {
|
319
|
+
color: #990073;
|
320
|
+
}
|
321
|
+
.ruby-number {
|
322
|
+
color: #40A070;
|
323
|
+
}
|