chess 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. checksums.yaml +4 -4
  2. data/README.rdoc +1 -1
  3. data/Rakefile +3 -4
  4. data/chess.gemspec +5 -0
  5. data/doc/Chess.html +112 -0
  6. data/doc/Chess/BadNotationError.html +107 -0
  7. data/doc/Chess/Board.html +703 -0
  8. data/doc/Chess/CGame.html +1005 -0
  9. data/doc/Chess/Game.html +684 -0
  10. data/doc/Chess/Gnuchess.html +215 -0
  11. data/doc/Chess/IllegalMoveError.html +105 -0
  12. data/doc/Chess/InvalidFenFormatError.html +105 -0
  13. data/doc/Chess/InvalidPgnFormatError.html +105 -0
  14. data/doc/Chess/Pgn.html +309 -0
  15. data/doc/Chess/UTF8Notation.html +174 -0
  16. data/doc/README_rdoc.html +143 -0
  17. data/doc/created.rid +15 -15
  18. data/doc/css/fonts.css +167 -0
  19. data/doc/css/rdoc.css +590 -0
  20. data/doc/fonts/Lato-Light.ttf +0 -0
  21. data/doc/fonts/Lato-LightItalic.ttf +0 -0
  22. data/doc/fonts/Lato-Regular.ttf +0 -0
  23. data/doc/fonts/Lato-RegularItalic.ttf +0 -0
  24. data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
  25. data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
  26. data/doc/images/add.png +0 -0
  27. data/doc/images/arrow_up.png +0 -0
  28. data/doc/images/brick.png +0 -0
  29. data/doc/images/brick_link.png +0 -0
  30. data/doc/images/bug.png +0 -0
  31. data/doc/images/bullet_black.png +0 -0
  32. data/doc/images/bullet_toggle_minus.png +0 -0
  33. data/doc/images/bullet_toggle_plus.png +0 -0
  34. data/doc/images/date.png +0 -0
  35. data/doc/images/delete.png +0 -0
  36. data/doc/images/find.png +0 -0
  37. data/doc/images/loadingAnimation.gif +0 -0
  38. data/doc/images/macFFBgHack.png +0 -0
  39. data/doc/images/package.png +0 -0
  40. data/doc/images/page_green.png +0 -0
  41. data/doc/images/page_white_text.png +0 -0
  42. data/doc/images/page_white_width.png +0 -0
  43. data/doc/images/plugin.png +0 -0
  44. data/doc/images/ruby.png +0 -0
  45. data/doc/images/tag_blue.png +0 -0
  46. data/doc/images/tag_green.png +0 -0
  47. data/doc/images/transparent.png +0 -0
  48. data/doc/images/wrench.png +0 -0
  49. data/doc/images/wrench_orange.png +0 -0
  50. data/doc/images/zoom.png +0 -0
  51. data/doc/index.html +159 -12
  52. data/doc/js/darkfish.js +161 -0
  53. data/doc/js/jquery.js +4 -0
  54. data/doc/js/navigation.js.gz +0 -0
  55. data/doc/js/search.js +109 -0
  56. data/doc/js/search_index.js +1 -1
  57. data/doc/js/search_index.js.gz +0 -0
  58. data/doc/js/searcher.js +1 -0
  59. data/doc/js/searcher.js.gz +0 -0
  60. data/doc/table_of_contents.html +331 -0
  61. data/ext/chess.c +5 -2
  62. data/ext/game.c +1 -1
  63. data/ext/game.h +1 -1
  64. data/lib/chess/game.rb +1 -1
  65. data/lib/chess/pgn.rb +5 -1
  66. data/lib/chess/version.rb +1 -1
  67. metadata +112 -46
  68. data/doc/apple-touch-icon.png +0 -0
  69. data/doc/classes/Chess.html +0 -162
  70. data/doc/classes/Chess/BadNotationError.html +0 -84
  71. data/doc/classes/Chess/Board.html +0 -795
  72. data/doc/classes/Chess/CGame.html +0 -1168
  73. data/doc/classes/Chess/Game.html +0 -775
  74. data/doc/classes/Chess/Gnuchess.html +0 -206
  75. data/doc/classes/Chess/IllegalMoveError.html +0 -82
  76. data/doc/classes/Chess/InvalidFenFormatError.html +0 -82
  77. data/doc/classes/Chess/InvalidPgnFormatError.html +0 -82
  78. data/doc/classes/Chess/Pgn.html +0 -332
  79. data/doc/classes/Chess/UTF8Notation.html +0 -175
  80. data/doc/css/github.css +0 -123
  81. data/doc/css/main.css +0 -323
  82. data/doc/css/panel.css +0 -384
  83. data/doc/css/reset.css +0 -48
  84. data/doc/favicon.ico +0 -0
  85. data/doc/files/README_rdoc.html +0 -122
  86. data/doc/files/ext/bitboard_c.html +0 -68
  87. data/doc/files/ext/board_c.html +0 -68
  88. data/doc/files/ext/chess_c.html +0 -68
  89. data/doc/files/ext/common_c.html +0 -68
  90. data/doc/files/ext/game_c.html +0 -68
  91. data/doc/files/ext/special_c.html +0 -68
  92. data/doc/files/lib/chess/exceptions_rb.html +0 -94
  93. data/doc/files/lib/chess/game_rb.html +0 -84
  94. data/doc/files/lib/chess/gnuchess_rb.html +0 -84
  95. data/doc/files/lib/chess/pgn_rb.html +0 -84
  96. data/doc/files/lib/chess/utf8_notation_rb.html +0 -84
  97. data/doc/files/lib/chess/version_rb.html +0 -85
  98. data/doc/files/lib/chess_rb.html +0 -84
  99. data/doc/i/arrows.png +0 -0
  100. data/doc/i/results_bg.png +0 -0
  101. data/doc/i/tree_bg.png +0 -0
  102. data/doc/js/highlight.pack.js +0 -1
  103. data/doc/js/jquery-1.3.2.min.js +0 -19
  104. data/doc/js/jquery-effect.js +0 -593
  105. data/doc/js/main.js +0 -24
  106. data/doc/js/searchdoc.js +0 -449
  107. data/doc/panel/index.html +0 -73
  108. data/doc/panel/links.html +0 -34
  109. data/doc/panel/tree.js +0 -1
@@ -1,48 +0,0 @@
1
- /* http://meyerweb.com/eric/tools/css/reset/ */
2
- /* v1.0 | 20080212 */
3
-
4
- html, body, div, span, applet, object, iframe,
5
- h1, h2, h3, h4, h5, h6, p, blockquote, pre,
6
- a, abbr, acronym, address, big, cite, code,
7
- del, dfn, em, font, img, ins, kbd, q, s, samp,
8
- small, strike, strong, sub, sup, tt, var,
9
- b, u, i, center,
10
- dl, dt, dd, ol, ul, li,
11
- fieldset, form, label, legend,
12
- table, caption, tbody, tfoot, thead, tr, th, td {
13
- margin: 0;
14
- padding: 0;
15
- border: 0;
16
- outline: 0;
17
- font-size: 100%;
18
- vertical-align: baseline;
19
- background: transparent;
20
- }
21
- body {
22
- line-height: 1;
23
- }
24
- ol, ul {
25
- list-style: none;
26
- }
27
- blockquote, q {
28
- quotes: none;
29
- }
30
- blockquote:before, blockquote:after,
31
- q:before, q:after {
32
- content: '';
33
- content: none;
34
- }
35
-
36
- /* remember to highlight inserts somehow! */
37
- ins {
38
- text-decoration: none;
39
- }
40
- del {
41
- text-decoration: line-through;
42
- }
43
-
44
- /* tables still need 'cellspacing="0"' in the markup */
45
- table {
46
- border-collapse: collapse;
47
- border-spacing: 0;
48
- }
Binary file
@@ -1,122 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
- <head>
6
- <title>README.rdoc</title>
7
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
8
- <link rel="stylesheet" href="../css/reset.css" type="text/css" media="screen" />
9
- <link rel="stylesheet" href="../css/main.css" type="text/css" media="screen" />
10
- <link rel="stylesheet" href="../css/github.css" type="text/css" media="screen" />
11
- <script src="../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
12
- <script src="../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
13
- <script src="../js/main.js" type="text/javascript" charset="utf-8"></script>
14
- <script src="../js/highlight.pack.js" type="text/javascript" charset="utf-8"></script>
15
-
16
- </head>
17
-
18
- <body>
19
- <div class="banner">
20
-
21
- <h1>
22
- README.rdoc
23
- </h1>
24
- <ul class="files">
25
- <li>README.rdoc</li>
26
- <li>Last modified: 2016-03-21 01:23:15 +0100</li>
27
- </ul>
28
- </div>
29
-
30
- <div id="bodyContent">
31
- <div id="content">
32
-
33
- <div class="description">
34
-
35
- <h1 id="label-Chess"><a href="../classes/Chess.html">Chess</a></h1>
36
-
37
- <p>A fast Ruby library to play chess with Ruby. This library is quite fast
38
- because rappresent the game situations with bitboards. In addition, the
39
- move generator is written in C as a Ruby extension.</p>
40
-
41
- <h2 id="label-Requirements">Requirements</h2>
42
- <ul><li>
43
- <p>Ruby 1.9 or higher</p>
44
- </li></ul>
45
-
46
- <h2 id="label-Installation">Installation</h2>
47
-
48
- <pre><code>gem install chess
49
- </code></pre>
50
-
51
- <h2 id="label-Usage">Usage</h2>
52
-
53
- <pre><code>require &#39;chess&#39;
54
- g = Chess::Game.new
55
- until g.over?
56
- begin
57
- print &quot;Give me a #{g.active_player} move: &quot;
58
- input = gets.chop
59
- break if input == &#39;quit&#39;
60
- g &lt;&lt; input
61
- puts g
62
- puts g.moves.last
63
- rescue Chess::IllegalMoveError =&gt; e
64
- puts &#39;Illegal move!&#39;
65
- end
66
- end
67
- puts g.status
68
- </code></pre>
69
-
70
- <p>Documentation is available <a href="http://pioz.github.com/chess">here</a>.</p>
71
-
72
- <h2 id="label-Questions+or+problems-3F">Questions or problems?</h2>
73
-
74
- <p>If you have any issues please add an <a
75
- href="https://github.com/pioz/chess/issues">issue on GitHub</a> or fork the
76
- project and send a pull request.</p>
77
-
78
- <h2 id="label-Copyright">Copyright</h2>
79
-
80
- <p>Copyright © 2015 <a href="https://github.com/pioz">Enrico Pilotto
81
- (@pioz)</a>. See <a
82
- href="https://github.com/pioz/chess/blob/master/LICENSE">LICENSE</a> for
83
- details.</p>
84
-
85
- </div>
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
-
98
-
99
-
100
-
101
-
102
-
103
-
104
-
105
-
106
-
107
-
108
-
109
-
110
-
111
-
112
-
113
-
114
-
115
-
116
-
117
- <!-- Methods -->
118
- </div>
119
-
120
- </div>
121
- </body>
122
- </html>
@@ -1,68 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
- <head>
6
- <title>bitboard.c</title>
7
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
8
- <link rel="stylesheet" href="../../css/reset.css" type="text/css" media="screen" />
9
- <link rel="stylesheet" href="../../css/main.css" type="text/css" media="screen" />
10
- <link rel="stylesheet" href="../../css/github.css" type="text/css" media="screen" />
11
- <script src="../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
12
- <script src="../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
13
- <script src="../../js/main.js" type="text/javascript" charset="utf-8"></script>
14
- <script src="../../js/highlight.pack.js" type="text/javascript" charset="utf-8"></script>
15
-
16
- </head>
17
-
18
- <body>
19
- <div class="banner">
20
-
21
- <h1>
22
- bitboard.c
23
- </h1>
24
- <ul class="files">
25
- <li>ext/bitboard.c</li>
26
- <li>Last modified: 2016-03-21 01:23:15 +0100</li>
27
- </ul>
28
- </div>
29
-
30
- <div id="bodyContent">
31
- <div id="content">
32
-
33
-
34
-
35
-
36
-
37
-
38
-
39
-
40
-
41
-
42
-
43
-
44
-
45
-
46
-
47
-
48
-
49
-
50
-
51
-
52
-
53
-
54
-
55
-
56
-
57
-
58
-
59
-
60
-
61
-
62
-
63
- <!-- Methods -->
64
- </div>
65
-
66
- </div>
67
- </body>
68
- </html>
@@ -1,68 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
- <head>
6
- <title>board.c</title>
7
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
8
- <link rel="stylesheet" href="../../css/reset.css" type="text/css" media="screen" />
9
- <link rel="stylesheet" href="../../css/main.css" type="text/css" media="screen" />
10
- <link rel="stylesheet" href="../../css/github.css" type="text/css" media="screen" />
11
- <script src="../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
12
- <script src="../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
13
- <script src="../../js/main.js" type="text/javascript" charset="utf-8"></script>
14
- <script src="../../js/highlight.pack.js" type="text/javascript" charset="utf-8"></script>
15
-
16
- </head>
17
-
18
- <body>
19
- <div class="banner">
20
-
21
- <h1>
22
- board.c
23
- </h1>
24
- <ul class="files">
25
- <li>ext/board.c</li>
26
- <li>Last modified: 2016-03-21 01:23:15 +0100</li>
27
- </ul>
28
- </div>
29
-
30
- <div id="bodyContent">
31
- <div id="content">
32
-
33
-
34
-
35
-
36
-
37
-
38
-
39
-
40
-
41
-
42
-
43
-
44
-
45
-
46
-
47
-
48
-
49
-
50
-
51
-
52
-
53
-
54
-
55
-
56
-
57
-
58
-
59
-
60
-
61
-
62
-
63
- <!-- Methods -->
64
- </div>
65
-
66
- </div>
67
- </body>
68
- </html>
@@ -1,68 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
- <head>
6
- <title>chess.c</title>
7
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
8
- <link rel="stylesheet" href="../../css/reset.css" type="text/css" media="screen" />
9
- <link rel="stylesheet" href="../../css/main.css" type="text/css" media="screen" />
10
- <link rel="stylesheet" href="../../css/github.css" type="text/css" media="screen" />
11
- <script src="../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
12
- <script src="../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
13
- <script src="../../js/main.js" type="text/javascript" charset="utf-8"></script>
14
- <script src="../../js/highlight.pack.js" type="text/javascript" charset="utf-8"></script>
15
-
16
- </head>
17
-
18
- <body>
19
- <div class="banner">
20
-
21
- <h1>
22
- chess.c
23
- </h1>
24
- <ul class="files">
25
- <li>ext/chess.c</li>
26
- <li>Last modified: 2016-03-21 01:23:15 +0100</li>
27
- </ul>
28
- </div>
29
-
30
- <div id="bodyContent">
31
- <div id="content">
32
-
33
-
34
-
35
-
36
-
37
-
38
-
39
-
40
-
41
-
42
-
43
-
44
-
45
-
46
-
47
-
48
-
49
-
50
-
51
-
52
-
53
-
54
-
55
-
56
-
57
-
58
-
59
-
60
-
61
-
62
-
63
- <!-- Methods -->
64
- </div>
65
-
66
- </div>
67
- </body>
68
- </html>
@@ -1,68 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
- <head>
6
- <title>common.c</title>
7
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
8
- <link rel="stylesheet" href="../../css/reset.css" type="text/css" media="screen" />
9
- <link rel="stylesheet" href="../../css/main.css" type="text/css" media="screen" />
10
- <link rel="stylesheet" href="../../css/github.css" type="text/css" media="screen" />
11
- <script src="../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
12
- <script src="../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
13
- <script src="../../js/main.js" type="text/javascript" charset="utf-8"></script>
14
- <script src="../../js/highlight.pack.js" type="text/javascript" charset="utf-8"></script>
15
-
16
- </head>
17
-
18
- <body>
19
- <div class="banner">
20
-
21
- <h1>
22
- common.c
23
- </h1>
24
- <ul class="files">
25
- <li>ext/common.c</li>
26
- <li>Last modified: 2016-03-21 01:23:15 +0100</li>
27
- </ul>
28
- </div>
29
-
30
- <div id="bodyContent">
31
- <div id="content">
32
-
33
-
34
-
35
-
36
-
37
-
38
-
39
-
40
-
41
-
42
-
43
-
44
-
45
-
46
-
47
-
48
-
49
-
50
-
51
-
52
-
53
-
54
-
55
-
56
-
57
-
58
-
59
-
60
-
61
-
62
-
63
- <!-- Methods -->
64
- </div>
65
-
66
- </div>
67
- </body>
68
- </html>