Initial commit
[trapthecap.git] / doc / files / lib / libttc_rb.html
1 <?xml version="1.0" encoding="iso-8859-1"?>
2 <!DOCTYPE html
3 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
6 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7 <head>
8 <title>File: libttc.rb</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">
13 // <![CDATA[
14
15 function popupCode( url ) {
16 window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17 }
18
19 function toggleCode( id ) {
20 if ( document.getElementById )
21 elem = document.getElementById( id );
22 else if ( document.all )
23 elem = eval( "document.all." + id );
24 else
25 return false;
26
27 elemStyle = elem.style;
28
29 if ( elemStyle.display != "block" ) {
30 elemStyle.display = "block"
31 } else {
32 elemStyle.display = "none"
33 }
34
35 return true;
36 }
37
38 // Make codeblocks hidden by default
39 document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
41 // ]]>
42 </script>
43
44 </head>
45 <body>
46
47
48
49 <div id="fileHeader">
50 <h1>libttc.rb</h1>
51 <table class="header-table">
52 <tr class="top-aligned-row">
53 <td><strong>Path:</strong></td>
54 <td>lib/libttc.rb
55 </td>
56 </tr>
57 <tr class="top-aligned-row">
58 <td><strong>Last Update:</strong></td>
59 <td>Thu Mar 27 16:06:40 +0000 2008</td>
60 </tr>
61 </table>
62 </div>
63 <!-- banner header -->
64
65 <div id="bodyContent">
66
67
68
69 <div id="contextContent">
70
71 <div id="description">
72 <h2>Synopsis</h2>
73 <p>
74 Library to support Trap the Cap play
75 </p>
76 <h2>Author</h2>
77 <p>
78 Neil Smith
79 </p>
80 <p>
81 This program is free software: you can redistribute it and/or modify it
82 under the terms of the GNU General Public License as published by the Free
83 Software Foundation, either version 3 of the License, or (at your option)
84 any later version.
85 </p>
86 <p>
87 This program is distributed in the hope that it will be useful, but WITHOUT
88 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
89 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
90 more details.
91 </p>
92 <p>
93 You should have received a copy of the GNU General Public License along
94 with this program. If not, see &lt;<a
95 href="http://www.gnu.org/licenses">www.gnu.org/licenses</a>/&gt;.
96 </p>
97 <h2>Change history</h2>
98 <table>
99 <tr><td valign="top">Version 1.1:</td><td>07 Sep 2007
100
101 <ul>
102 <li>Changed format for showing moves via bases.
103
104 </li>
105 <li>Raise error when moving via base without captured pieces
106
107 </li>
108 <li>Raise error when moving onto a safe space with 3 or more pieces already
109 there
110
111 </li>
112 </ul>
113 </td></tr>
114 <tr><td valign="top">Version 1.2:</td><td>10 Sep 2007
115
116 <ul>
117 <li>Incorporated changes in move legality above into <a
118 href="../../classes/Game.html#M000041">Game#possible_moves</a>
119
120 </li>
121 </ul>
122 </td></tr>
123 <tr><td valign="top">Version 1.3:</td><td>25 Mar 2008
124
125 <ul>
126 <li>Fixed bug to detect a winner, and also eliminate players that have no
127 uncaptured pieces.
128
129 </li>
130 </ul>
131 </td></tr>
132 </table>
133
134 </div>
135
136
137 </div>
138
139
140 </div>
141
142
143 <!-- if includes -->
144
145 <div id="section">
146
147
148
149
150
151
152
153
154 <!-- if method_list -->
155
156
157 </div>
158
159
160 <div id="validator-badges">
161 <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
162 </div>
163
164 </body>
165 </html>