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>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">
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>" )
51 <table class=
"header-table">
52 <tr class=
"top-aligned-row">
53 <td><strong>Path:
</strong></td>
57 <tr class=
"top-aligned-row">
58 <td><strong>Last Update:
</strong></td>
59 <td>Thu Mar
27 16:
06:
40 +
0000 2008</td>
63 <!-- banner header -->
65 <div id=
"bodyContent">
69 <div id=
"contextContent">
71 <div id=
"description">
74 Library to support Trap the Cap play
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)
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
93 You should have received a copy of the GNU General Public License along
94 with this program. If not, see
<<a
95 href=
"http://www.gnu.org/licenses">www.gnu.org/licenses
</a>/
>.
97 <h2>Change history
</h2>
99 <tr><td valign=
"top">Version
1.1:
</td><td>07 Sep
2007
102 <li>Changed format for showing moves via bases.
105 <li>Raise error when moving via base without captured pieces
108 <li>Raise error when moving onto a safe space with
3 or more pieces already
114 <tr><td valign=
"top">Version
1.2:
</td><td>10 Sep
2007
117 <li>Incorporated changes in move legality above into
<a
118 href=
"../../classes/Game.html#M000041">Game#possible_moves
</a>
123 <tr><td valign=
"top">Version
1.3:
</td><td>25 Mar
2008
126 <li>Fixed bug to detect a winner, and also eliminate players that have no
154 <!-- if method_list -->
160 <div id=
"validator-badges">
161 <p><small><a href=
"http://validator.w3.org/check/referer">[Validate]
</a></small></p>