1 <?xml version=
"1.0" encoding=
"iso-8859-1"?>
3 PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
4 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
6 <html xmlns=
"http://www.w3.org/1999/xhtml" xml:
lang=
"en" lang=
"en">
8 <title>Class: GameTest
</title>
9 <meta http-equiv=
"Content-Type" content=
"text/html; charset=iso-8859-1" />
10 <meta http-equiv=
"Content-Script-Type" content=
"text/javascript" />
11 <link rel=
"stylesheet" href=
".././rdoc-style.css" type=
"text/css" media=
"screen" />
12 <script type=
"text/javascript">
15 function popupCode( url ) {
16 window.open(url,
"Code",
"resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
19 function toggleCode( id ) {
20 if ( document.getElementById )
21 elem = document.getElementById( id );
22 else if ( document.all )
23 elem = eval(
"document.all." + id );
27 elemStyle = elem.style;
29 if ( elemStyle.display !=
"block" ) {
30 elemStyle.display =
"block"
32 elemStyle.display =
"none"
38 // Make codeblocks hidden by default
39 document.writeln(
"<style type=\"text/css\
">div.method-source-code { display: none }</style>" )
49 <div id=
"classHeader">
50 <table class=
"header-table">
51 <tr class=
"top-aligned-row">
52 <td><strong>Class
</strong></td>
53 <td class=
"class-name-in-header">GameTest
</td>
55 <tr class=
"top-aligned-row">
56 <td><strong>In:
</strong></td>
58 <a href=
"../files/test/libttc_test_rb.html">
65 <tr class=
"top-aligned-row">
66 <td><strong>Parent:
</strong></td>
73 <!-- banner header -->
75 <div id=
"bodyContent">
79 <div id=
"contextContent">
85 <div id=
"method-list">
86 <h3 class=
"section-bar">Methods
</h3>
88 <div class=
"name-list">
89 <a href=
"#M000025">test_apply_moves!
</a>
90 <a href=
"#M000021">test_captures
</a>
91 <a href=
"#M000026">test_eliminations
</a>
92 <a href=
"#M000024">test_game
</a>
93 <a href=
"#M000018">test_game_init
</a>
94 <a href=
"#M000017">test_init
</a>
95 <a href=
"#M000023">test_move_after_captures
</a>
96 <a href=
"#M000022">test_no_captures_on_safe_spaces
</a>
97 <a href=
"#M000020">test_separate_moves
</a>
98 <a href=
"#M000019">test_single_moves_1
</a>
99 <a href=
"#M000027">test_undo_move!
</a>
117 <!-- if method_list -->
119 <h3 class=
"section-bar">Public Instance methods
</h3>
121 <div id=
"method-M000025" class=
"method-detail">
122 <a name=
"M000025"></a>
124 <div class=
"method-heading">
125 <a href=
"GameTest.src/M000025.html" target=
"Code" class=
"method-signature"
126 onclick=
"popupCode('GameTest.src/M000025.html');return false;">
127 <span class=
"method-name">test_apply_moves!
</span><span class=
"method-args">()
</span>
131 <div class=
"method-description">
135 <div id=
"method-M000021" class=
"method-detail">
136 <a name=
"M000021"></a>
138 <div class=
"method-heading">
139 <a href=
"GameTest.src/M000021.html" target=
"Code" class=
"method-signature"
140 onclick=
"popupCode('GameTest.src/M000021.html');return false;">
141 <span class=
"method-name">test_captures
</span><span class=
"method-args">()
</span>
145 <div class=
"method-description">
149 <div id=
"method-M000026" class=
"method-detail">
150 <a name=
"M000026"></a>
152 <div class=
"method-heading">
153 <a href=
"GameTest.src/M000026.html" target=
"Code" class=
"method-signature"
154 onclick=
"popupCode('GameTest.src/M000026.html');return false;">
155 <span class=
"method-name">test_eliminations
</span><span class=
"method-args">()
</span>
159 <div class=
"method-description">
163 <div id=
"method-M000024" class=
"method-detail">
164 <a name=
"M000024"></a>
166 <div class=
"method-heading">
167 <a href=
"GameTest.src/M000024.html" target=
"Code" class=
"method-signature"
168 onclick=
"popupCode('GameTest.src/M000024.html');return false;">
169 <span class=
"method-name">test_game
</span><span class=
"method-args">()
</span>
173 <div class=
"method-description">
177 <div id=
"method-M000018" class=
"method-detail">
178 <a name=
"M000018"></a>
180 <div class=
"method-heading">
181 <a href=
"GameTest.src/M000018.html" target=
"Code" class=
"method-signature"
182 onclick=
"popupCode('GameTest.src/M000018.html');return false;">
183 <span class=
"method-name">test_game_init
</span><span class=
"method-args">()
</span>
187 <div class=
"method-description">
191 <div id=
"method-M000017" class=
"method-detail">
192 <a name=
"M000017"></a>
194 <div class=
"method-heading">
195 <a href=
"GameTest.src/M000017.html" target=
"Code" class=
"method-signature"
196 onclick=
"popupCode('GameTest.src/M000017.html');return false;">
197 <span class=
"method-name">test_init
</span><span class=
"method-args">()
</span>
201 <div class=
"method-description">
205 <div id=
"method-M000023" class=
"method-detail">
206 <a name=
"M000023"></a>
208 <div class=
"method-heading">
209 <a href=
"GameTest.src/M000023.html" target=
"Code" class=
"method-signature"
210 onclick=
"popupCode('GameTest.src/M000023.html');return false;">
211 <span class=
"method-name">test_move_after_captures
</span><span class=
"method-args">()
</span>
215 <div class=
"method-description">
219 <div id=
"method-M000022" class=
"method-detail">
220 <a name=
"M000022"></a>
222 <div class=
"method-heading">
223 <a href=
"GameTest.src/M000022.html" target=
"Code" class=
"method-signature"
224 onclick=
"popupCode('GameTest.src/M000022.html');return false;">
225 <span class=
"method-name">test_no_captures_on_safe_spaces
</span><span class=
"method-args">()
</span>
229 <div class=
"method-description">
233 <div id=
"method-M000020" class=
"method-detail">
234 <a name=
"M000020"></a>
236 <div class=
"method-heading">
237 <a href=
"GameTest.src/M000020.html" target=
"Code" class=
"method-signature"
238 onclick=
"popupCode('GameTest.src/M000020.html');return false;">
239 <span class=
"method-name">test_separate_moves
</span><span class=
"method-args">()
</span>
243 <div class=
"method-description">
247 <div id=
"method-M000019" class=
"method-detail">
248 <a name=
"M000019"></a>
250 <div class=
"method-heading">
251 <a href=
"GameTest.src/M000019.html" target=
"Code" class=
"method-signature"
252 onclick=
"popupCode('GameTest.src/M000019.html');return false;">
253 <span class=
"method-name">test_single_moves_1
</span><span class=
"method-args">()
</span>
257 <div class=
"method-description">
261 <div id=
"method-M000027" class=
"method-detail">
262 <a name=
"M000027"></a>
264 <div class=
"method-heading">
265 <a href=
"GameTest.src/M000027.html" target=
"Code" class=
"method-signature"
266 onclick=
"popupCode('GameTest.src/M000027.html');return false;">
267 <span class=
"method-name">test_undo_move!
</span><span class=
"method-args">()
</span>
271 <div class=
"method-description">
282 <div id=
"validator-badges">
283 <p><small><a href=
"http://validator.w3.org/check/referer">[Validate]
</a></small></p>