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: clockwise-p1.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>" )
50 <h1>clockwise-p1.rb
</h1>
51 <table class=
"header-table">
52 <tr class=
"top-aligned-row">
53 <td><strong>Path:
</strong></td>
54 <td>src/clockwise-p1.rb
57 <tr class=
"top-aligned-row">
58 <td><strong>Last Update:
</strong></td>
59 <td>Fri Aug
31 12:
19:
53 +
0100 2007</td>
63 <!-- banner header -->
65 <div id=
"bodyContent">
69 <div id=
"contextContent">
71 <div id=
"description">
74 Play one move of a Trap the Cap game
81 Game state file read on STDIN
82 Move produced on STDOUT
91 <div id=
"requires-list">
92 <h3 class=
"section-bar">Required files
</h3>
94 <div class=
"name-list">
96 rdoc/usage
102 <div id=
"method-list">
103 <h3 class=
"section-bar">Methods
</h3>
105 <div class=
"name-list">
106 <a href=
"#M000002">more_clockwise
</a>
124 <!-- if method_list -->
126 <h3 class=
"section-bar">Public Instance methods
</h3>
128 <div id=
"method-M000002" class=
"method-detail">
129 <a name=
"M000002"></a>
131 <div class=
"method-heading">
132 <a href=
"clockwise-p1_rb.src/M000002.html" target=
"Code" class=
"method-signature"
133 onclick=
"popupCode('clockwise-p1_rb.src/M000002.html');return false;">
134 <span class=
"method-name">more_clockwise
</span><span class=
"method-args">(this, other)
</span>
138 <div class=
"method-description">
149 <div id=
"validator-badges">
150 <p><small><a href=
"http://validator.w3.org/check/referer">[Validate]
</a></small></p>