PlayRockPaperScissorsGame 2.0.7 → 2.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/doc/Constants.html +135 -0
- data/doc/Gemfile.html +174 -0
- data/doc/Gemfile_lock.html +199 -0
- data/doc/LICENSE.html +183 -0
- data/doc/PlayRockPaperScissorsGame.html +110 -0
- data/doc/PlayRockPaperScissorsGame/Constants.html +135 -0
- data/doc/PlayRockPaperScissorsGame/PrivateMethods.html +96 -0
- data/doc/PrivateMethods.html +96 -0
- data/doc/README_md.html +227 -0
- data/doc/RakeTest.html +268 -0
- data/doc/RakeTest/Constants.html +135 -0
- data/doc/RakeTest/PrivateMethods.html +96 -0
- data/doc/Rakefile.html +187 -0
- data/doc/RockPaperScissors_sublime-project.html +196 -0
- data/doc/RockPaperScissors_sublime-workspace.html +1049 -0
- data/doc/certs/gem-public_cert_pem.html +181 -0
- data/doc/created.rid +52 -0
- data/doc/css/fonts.css +167 -0
- data/doc/css/rdoc.css +590 -0
- data/doc/docs/CODE_OF_CONDUCT_md.html +270 -0
- data/doc/docs/CONTRIBUTING_md.html +239 -0
- data/doc/docs/Gemfile.html +164 -0
- data/doc/docs/Gemfile_lock.html +373 -0
- data/doc/docs/How_to_Build_md.html +207 -0
- data/doc/docs/LICENSE.html +286 -0
- data/doc/docs/Testing_md.html +200 -0
- data/doc/docs/_layouts/default_html.html +212 -0
- data/doc/docs/_sass/jekyll-theme-cayman_scss.html +531 -0
- data/doc/docs/_sass/normalize_scss.html +679 -0
- data/doc/docs/_sass/rouge-github_scss.html +431 -0
- data/doc/docs/_sass/variables_scss.html +173 -0
- data/doc/docs/_site/CODE_OF_CONDUCT_html.html +305 -0
- data/doc/docs/_site/CONTRIBUTING_html.html +261 -0
- data/doc/docs/_site/How_to_Build_html.html +236 -0
- data/doc/docs/_site/Testing_html.html +237 -0
- data/doc/docs/_site/assets/css/style_css.html +549 -0
- data/doc/docs/_site/index_html.html +305 -0
- data/doc/docs/_site/script/bootstrap.html +166 -0
- data/doc/docs/_site/script/cibuild.html +166 -0
- data/doc/docs/_site/script/release.html +209 -0
- data/doc/docs/_site/script/server.html +164 -0
- data/doc/docs/assets/css/style_scss.html +164 -0
- data/doc/docs/index_md.html +259 -0
- data/doc/docs/jekyll-theme-cayman_gemspec.html +180 -0
- data/doc/docs/script/bootstrap.html +166 -0
- data/doc/docs/script/cibuild.html +166 -0
- data/doc/docs/script/release.html +209 -0
- data/doc/docs/script/server.html +164 -0
- data/doc/exec/rps_bash.html +234 -0
- data/doc/exec/run_bat.html +185 -0
- data/doc/exec/uninstall_sh.html +194 -0
- data/doc/fonts/Lato-Light.ttf +0 -0
- data/doc/fonts/Lato-LightItalic.ttf +0 -0
- data/doc/fonts/Lato-Regular.ttf +0 -0
- data/doc/fonts/Lato-RegularItalic.ttf +0 -0
- data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
- data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
- data/doc/images/add.png +0 -0
- data/doc/images/arrow_up.png +0 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/transparent.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +186 -0
- data/doc/js/darkfish.js +161 -0
- data/doc/js/jquery.js +4 -0
- data/doc/js/navigation.js +142 -0
- data/doc/js/navigation.js.gz +0 -0
- data/doc/js/search.js +109 -0
- data/doc/js/search_index.js +1 -0
- data/doc/js/search_index.js.gz +0 -0
- data/doc/js/searcher.js +229 -0
- data/doc/js/searcher.js.gz +0 -0
- data/doc/rps_gemspec.html +201 -0
- data/doc/table_of_contents.html +280 -0
- data/lib/rps/version.rb +1 -1
- data/rps.gemspec +1 -1
- metadata +95 -1
- metadata.gz.sig +0 -0
@@ -0,0 +1,96 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>module PrivateMethods - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<script type="text/javascript">
|
10
|
+
var rdoc_rel_prefix = "./";
|
11
|
+
var index_rel_prefix = "./";
|
12
|
+
</script>
|
13
|
+
|
14
|
+
<script src="./js/jquery.js"></script>
|
15
|
+
<script src="./js/darkfish.js"></script>
|
16
|
+
|
17
|
+
<link href="./css/fonts.css" rel="stylesheet">
|
18
|
+
<link href="./css/rdoc.css" rel="stylesheet">
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
<body id="top" role="document" class="module">
|
23
|
+
<nav role="navigation">
|
24
|
+
<div id="project-navigation">
|
25
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
26
|
+
<h2>
|
27
|
+
<a href="./index.html" rel="home">Home</a>
|
28
|
+
</h2>
|
29
|
+
|
30
|
+
<div id="table-of-contents-navigation">
|
31
|
+
<a href="./table_of_contents.html#pages">Pages</a>
|
32
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
33
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
34
|
+
</div>
|
35
|
+
</div>
|
36
|
+
|
37
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
38
|
+
<form action="#" method="get" accept-charset="utf-8">
|
39
|
+
<div id="search-field-wrapper">
|
40
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
41
|
+
aria-autocomplete="list" aria-controls="search-results"
|
42
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
43
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
44
|
+
</div>
|
45
|
+
|
46
|
+
<ul id="search-results" aria-label="Search Results"
|
47
|
+
aria-busy="false" aria-expanded="false"
|
48
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
49
|
+
</form>
|
50
|
+
</div>
|
51
|
+
|
52
|
+
</div>
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
<div id="class-metadata">
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
</div>
|
63
|
+
</nav>
|
64
|
+
|
65
|
+
<main role="main" aria-labelledby="module-PrivateMethods">
|
66
|
+
<h1 id="module-PrivateMethods" class="module">
|
67
|
+
module PrivateMethods
|
68
|
+
</h1>
|
69
|
+
|
70
|
+
<section class="description">
|
71
|
+
|
72
|
+
</section>
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
</section>
|
88
|
+
</main>
|
89
|
+
|
90
|
+
|
91
|
+
<footer id="validator-badges" role="contentinfo">
|
92
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
93
|
+
<p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> 5.0.0.
|
94
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
95
|
+
</footer>
|
96
|
+
|
data/doc/README_md.html
ADDED
@@ -0,0 +1,227 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>README - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<script type="text/javascript">
|
10
|
+
var rdoc_rel_prefix = "./";
|
11
|
+
var index_rel_prefix = "./";
|
12
|
+
</script>
|
13
|
+
|
14
|
+
<script src="./js/jquery.js"></script>
|
15
|
+
<script src="./js/darkfish.js"></script>
|
16
|
+
|
17
|
+
<link href="./css/fonts.css" rel="stylesheet">
|
18
|
+
<link href="./css/rdoc.css" rel="stylesheet">
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
<body id="top" role="document" class="file">
|
23
|
+
<nav role="navigation">
|
24
|
+
<div id="project-navigation">
|
25
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
26
|
+
<h2>
|
27
|
+
<a href="./index.html" rel="home">Home</a>
|
28
|
+
</h2>
|
29
|
+
|
30
|
+
<div id="table-of-contents-navigation">
|
31
|
+
<a href="./table_of_contents.html#pages">Pages</a>
|
32
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
33
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
34
|
+
</div>
|
35
|
+
</div>
|
36
|
+
|
37
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
38
|
+
<form action="#" method="get" accept-charset="utf-8">
|
39
|
+
<div id="search-field-wrapper">
|
40
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
41
|
+
aria-autocomplete="list" aria-controls="search-results"
|
42
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
43
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
44
|
+
</div>
|
45
|
+
|
46
|
+
<ul id="search-results" aria-label="Search Results"
|
47
|
+
aria-busy="false" aria-expanded="false"
|
48
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
49
|
+
</form>
|
50
|
+
</div>
|
51
|
+
|
52
|
+
</div>
|
53
|
+
|
54
|
+
|
55
|
+
<div class="nav-section">
|
56
|
+
<h3>Table of Contents</h3>
|
57
|
+
|
58
|
+
<ul class="link-list" role="directory">
|
59
|
+
<li><a href="#label-Rock+Paper+Scissors">Rock Paper Scissors</a>
|
60
|
+
<li><a href="#label-How+to+Run+and+Install">How to Run and Install</a>
|
61
|
+
<li><a href="#label-Install+and+Run+on+Mac">Install and Run on Mac</a>
|
62
|
+
<li><a href="#label-Running">Running</a>
|
63
|
+
<li><a href="#label-Uninstalling">Uninstalling</a>
|
64
|
+
<li><a href="#label-Install+and+Run+on+Windows">Install and Run on Windows</a>
|
65
|
+
<li><a href="#label-Running">Running</a>
|
66
|
+
<li><a href="#label-Links">Links</a>
|
67
|
+
</ul>
|
68
|
+
</div>
|
69
|
+
|
70
|
+
|
71
|
+
<div id="project-metadata">
|
72
|
+
<div id="fileindex-section" class="nav-section">
|
73
|
+
<h3>Pages</h3>
|
74
|
+
|
75
|
+
<ul class="link-list">
|
76
|
+
|
77
|
+
<li><a href="./Gemfile.html">Gemfile</a>
|
78
|
+
|
79
|
+
<li><a href="./Gemfile_lock.html">Gemfile.lock</a>
|
80
|
+
|
81
|
+
<li><a href="./LICENSE.html">LICENSE</a>
|
82
|
+
|
83
|
+
<li><a href="./README_md.html">README</a>
|
84
|
+
|
85
|
+
<li><a href="./Rakefile.html">Rakefile</a>
|
86
|
+
|
87
|
+
<li><a href="./RockPaperScissors_sublime-project.html">RockPaperScissors.sublime-project</a>
|
88
|
+
|
89
|
+
<li><a href="./RockPaperScissors_sublime-workspace.html">RockPaperScissors.sublime-workspace</a>
|
90
|
+
|
91
|
+
<li><a href="./certs/gem-public_cert_pem.html">gem-public_cert.pem</a>
|
92
|
+
|
93
|
+
<li><a href="./docs/CODE_OF_CONDUCT_md.html">CODE_OF_CONDUCT</a>
|
94
|
+
|
95
|
+
<li><a href="./docs/CONTRIBUTING_md.html">CONTRIBUTING</a>
|
96
|
+
|
97
|
+
<li><a href="./docs/Gemfile.html">Gemfile</a>
|
98
|
+
|
99
|
+
<li><a href="./docs/Gemfile_lock.html">Gemfile.lock</a>
|
100
|
+
|
101
|
+
<li><a href="./docs/How_to_Build_md.html">How_to_Build</a>
|
102
|
+
|
103
|
+
<li><a href="./docs/LICENSE.html">LICENSE</a>
|
104
|
+
|
105
|
+
<li><a href="./docs/Testing_md.html">Testing</a>
|
106
|
+
|
107
|
+
<li><a href="./docs/_layouts/default_html.html">default.html</a>
|
108
|
+
|
109
|
+
<li><a href="./docs/_sass/jekyll-theme-cayman_scss.html">jekyll-theme-cayman.scss</a>
|
110
|
+
|
111
|
+
<li><a href="./docs/_sass/normalize_scss.html">normalize.scss</a>
|
112
|
+
|
113
|
+
<li><a href="./docs/_sass/rouge-github_scss.html">rouge-github.scss</a>
|
114
|
+
|
115
|
+
<li><a href="./docs/_sass/variables_scss.html">variables.scss</a>
|
116
|
+
|
117
|
+
<li><a href="./docs/_site/CODE_OF_CONDUCT_html.html">CODE_OF_CONDUCT.html</a>
|
118
|
+
|
119
|
+
<li><a href="./docs/_site/CONTRIBUTING_html.html">CONTRIBUTING.html</a>
|
120
|
+
|
121
|
+
<li><a href="./docs/_site/How_to_Build_html.html">How_to_Build.html</a>
|
122
|
+
|
123
|
+
<li><a href="./docs/_site/Testing_html.html">Testing.html</a>
|
124
|
+
|
125
|
+
<li><a href="./docs/_site/assets/css/style_css.html">style.css</a>
|
126
|
+
|
127
|
+
<li><a href="./docs/_site/index_html.html">index.html</a>
|
128
|
+
|
129
|
+
<li><a href="./docs/_site/script/bootstrap.html">bootstrap</a>
|
130
|
+
|
131
|
+
<li><a href="./docs/_site/script/cibuild.html">cibuild</a>
|
132
|
+
|
133
|
+
<li><a href="./docs/_site/script/release.html">release</a>
|
134
|
+
|
135
|
+
<li><a href="./docs/_site/script/server.html">server</a>
|
136
|
+
|
137
|
+
<li><a href="./docs/assets/css/style_scss.html">style.scss</a>
|
138
|
+
|
139
|
+
<li><a href="./docs/index_md.html">index</a>
|
140
|
+
|
141
|
+
<li><a href="./docs/jekyll-theme-cayman_gemspec.html">jekyll-theme-cayman.gemspec</a>
|
142
|
+
|
143
|
+
<li><a href="./docs/script/bootstrap.html">bootstrap</a>
|
144
|
+
|
145
|
+
<li><a href="./docs/script/cibuild.html">cibuild</a>
|
146
|
+
|
147
|
+
<li><a href="./docs/script/release.html">release</a>
|
148
|
+
|
149
|
+
<li><a href="./docs/script/server.html">server</a>
|
150
|
+
|
151
|
+
<li><a href="./exec/rps_bash.html">rps.bash</a>
|
152
|
+
|
153
|
+
<li><a href="./exec/run_bat.html">run.bat</a>
|
154
|
+
|
155
|
+
<li><a href="./exec/uninstall_sh.html">uninstall.sh</a>
|
156
|
+
|
157
|
+
<li><a href="./rps_gemspec.html">rps.gemspec</a>
|
158
|
+
|
159
|
+
</ul>
|
160
|
+
</div>
|
161
|
+
|
162
|
+
</div>
|
163
|
+
</nav>
|
164
|
+
|
165
|
+
<main role="main" aria-label="Page README.md">
|
166
|
+
|
167
|
+
<h1 id="label-Rock+Paper+Scissors">Rock Paper Scissors<span><a href="#label-Rock+Paper+Scissors">¶</a> <a href="#top">↑</a></span></h1>
|
168
|
+
|
169
|
+
<h2 id="label-How+to+Run+and+Install">How to Run and Install<span><a href="#label-How+to+Run+and+Install">¶</a> <a href="#top">↑</a></span></h2>
|
170
|
+
|
171
|
+
<h3 id="label-Install+and+Run+on+Mac">Install and Run on Mac<span><a href="#label-Install+and+Run+on+Mac">¶</a> <a href="#top">↑</a></span></h3>
|
172
|
+
<ol><li>
|
173
|
+
<p>Run the <code>rps.bash</code> file (located in the <code>exec</code>
|
174
|
+
folder) with the <code>Terminal</code></p>
|
175
|
+
</li></ol>
|
176
|
+
|
177
|
+
<h4 id="label-Running">Running<span><a href="#label-Running">¶</a> <a href="#top">↑</a></span></h4>
|
178
|
+
<ol><li>
|
179
|
+
<p>Open the <code>Terminal</code></p>
|
180
|
+
</li><li>
|
181
|
+
<p>Type in: <code>rps</code>, or <code>PlayRockPaperScissorsGame</code></p>
|
182
|
+
</li><li>
|
183
|
+
<p>Hit <kbd>return</kbd></p>
|
184
|
+
</li></ol>
|
185
|
+
|
186
|
+
<h4 id="label-Uninstalling">Uninstalling<span><a href="#label-Uninstalling">¶</a> <a href="#top">↑</a></span></h4>
|
187
|
+
<ol><li>
|
188
|
+
<p>Run the <code>uninstaller.sh</code> file (located in the <code>exec</code>
|
189
|
+
folder) with the <code>Terminal</code></p>
|
190
|
+
</li></ol>
|
191
|
+
|
192
|
+
<h3 id="label-Install+and+Run+on+Windows">Install and Run on Windows<span><a href="#label-Install+and+Run+on+Windows">¶</a> <a href="#top">↑</a></span></h3>
|
193
|
+
<ol><li>
|
194
|
+
<p>Download and install Ruby for Windows (if not already installed); download
|
195
|
+
<a href="https://rubyinstaller.org/downloads/">here</a></p>
|
196
|
+
</li><li>
|
197
|
+
<p>Open <code>cmd</code> and type in: <code>gem install
|
198
|
+
PlayRockPaperScissorsGame</code>; hit <kbd>enter</kbd></p>
|
199
|
+
</li><li>
|
200
|
+
<p>Run the <code>rps.bat</code> file (located in the <code>exec</code> folder)</p>
|
201
|
+
</li></ol>
|
202
|
+
|
203
|
+
<h4 id="label-Running">Running<span><a href="#label-Running">¶</a> <a href="#top">↑</a></span></h4>
|
204
|
+
<ol><li>
|
205
|
+
<p>Open the <code>rps.bat</code> file (located in the <code>exec</code>
|
206
|
+
folder)</p>
|
207
|
+
</li><li>
|
208
|
+
<p>Another option: type in <code>rps</code> or
|
209
|
+
<code>PlayRockPaperScissorsGame</code> in the <code>Command Prompt</code>;
|
210
|
+
hit <kbd>enter</kbd></p>
|
211
|
+
</li></ol>
|
212
|
+
|
213
|
+
<h2 id="label-Links">Links<span><a href="#label-Links">¶</a> <a href="#top">↑</a></span></h2>
|
214
|
+
<ul><li>
|
215
|
+
<p><a href="https://rubygems.org/gems/PlayRockPaperScissorsGame">Ruby Gems
|
216
|
+
Page</a></p>
|
217
|
+
</li></ul>
|
218
|
+
</main>
|
219
|
+
|
220
|
+
|
221
|
+
|
222
|
+
<footer id="validator-badges" role="contentinfo">
|
223
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
224
|
+
<p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> 5.0.0.
|
225
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
226
|
+
</footer>
|
227
|
+
|
data/doc/RakeTest.html
ADDED
@@ -0,0 +1,268 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>class RakeTest - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<script type="text/javascript">
|
10
|
+
var rdoc_rel_prefix = "./";
|
11
|
+
var index_rel_prefix = "./";
|
12
|
+
</script>
|
13
|
+
|
14
|
+
<script src="./js/jquery.js"></script>
|
15
|
+
<script src="./js/darkfish.js"></script>
|
16
|
+
|
17
|
+
<link href="./css/fonts.css" rel="stylesheet">
|
18
|
+
<link href="./css/rdoc.css" rel="stylesheet">
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
<body id="top" role="document" class="class">
|
23
|
+
<nav role="navigation">
|
24
|
+
<div id="project-navigation">
|
25
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
26
|
+
<h2>
|
27
|
+
<a href="./index.html" rel="home">Home</a>
|
28
|
+
</h2>
|
29
|
+
|
30
|
+
<div id="table-of-contents-navigation">
|
31
|
+
<a href="./table_of_contents.html#pages">Pages</a>
|
32
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
33
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
34
|
+
</div>
|
35
|
+
</div>
|
36
|
+
|
37
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
38
|
+
<form action="#" method="get" accept-charset="utf-8">
|
39
|
+
<div id="search-field-wrapper">
|
40
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
41
|
+
aria-autocomplete="list" aria-controls="search-results"
|
42
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
43
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
44
|
+
</div>
|
45
|
+
|
46
|
+
<ul id="search-results" aria-label="Search Results"
|
47
|
+
aria-busy="false" aria-expanded="false"
|
48
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
49
|
+
</form>
|
50
|
+
</div>
|
51
|
+
|
52
|
+
</div>
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
<div id="class-metadata">
|
57
|
+
|
58
|
+
<div id="parent-class-section" class="nav-section">
|
59
|
+
<h3>Parent</h3>
|
60
|
+
|
61
|
+
|
62
|
+
<p class="link">Object
|
63
|
+
|
64
|
+
</div>
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
<!-- Method Quickref -->
|
69
|
+
<div id="method-list-section" class="nav-section">
|
70
|
+
<h3>Methods</h3>
|
71
|
+
|
72
|
+
<ul class="link-list" role="directory">
|
73
|
+
|
74
|
+
<li ><a href="#method-c-continue">::continue</a>
|
75
|
+
|
76
|
+
<li ><a href="#method-c-new">::new</a>
|
77
|
+
|
78
|
+
<li ><a href="#method-i-testPlay">#testPlay</a>
|
79
|
+
|
80
|
+
</ul>
|
81
|
+
</div>
|
82
|
+
|
83
|
+
</div>
|
84
|
+
</nav>
|
85
|
+
|
86
|
+
<main role="main" aria-labelledby="class-RakeTest">
|
87
|
+
<h1 id="class-RakeTest" class="class">
|
88
|
+
class RakeTest
|
89
|
+
</h1>
|
90
|
+
|
91
|
+
<section class="description">
|
92
|
+
|
93
|
+
<p>|====================================| | Req Ruby Ver | Req Ruby Gems Ver
|
94
|
+
| |————–|———————| | >= v2.0.0 | >= v2.6.10 |
|
95
|
+
|====================================|</p>
|
96
|
+
|
97
|
+
</section>
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
113
|
+
<header>
|
114
|
+
<h3>Public Class Methods</h3>
|
115
|
+
</header>
|
116
|
+
|
117
|
+
|
118
|
+
<div id="method-c-continue" class="method-detail ">
|
119
|
+
|
120
|
+
<div class="method-heading">
|
121
|
+
<span class="method-name">continue</span><span
|
122
|
+
class="method-args">(str1, str2, str3)</span>
|
123
|
+
|
124
|
+
<span class="method-click-advice">click to toggle source</span>
|
125
|
+
|
126
|
+
</div>
|
127
|
+
|
128
|
+
|
129
|
+
<div class="method-description">
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
<div class="method-source-code" id="continue-source">
|
137
|
+
<pre><span class="ruby-comment"># File test/test_rps.rb, line 25</span>
|
138
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">continue</span>(<span class="ruby-identifier">str1</span>, <span class="ruby-identifier">str2</span>, <span class="ruby-identifier">str3</span>)
|
139
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-constant">ColorizedString</span>[<span class="ruby-identifier">str1</span>].<span class="ruby-identifier">colorize</span>(<span class="ruby-value">:color</span> =<span class="ruby-operator">></span> <span class="ruby-value">:green</span>)
|
140
|
+
<span class="ruby-identifier">print</span> <span class="ruby-constant">ColorizedString</span>[<span class="ruby-identifier">str2</span>].<span class="ruby-identifier">colorize</span>(<span class="ruby-value">:color</span> =<span class="ruby-operator">></span> <span class="ruby-value">:green</span>)
|
141
|
+
<span class="ruby-identifier">gets</span>
|
142
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-constant">ColorizedString</span>[<span class="ruby-identifier">str3</span>].<span class="ruby-identifier">colorize</span>(<span class="ruby-value">:color</span> =<span class="ruby-operator">></span> <span class="ruby-value">:green</span>)
|
143
|
+
<span class="ruby-keyword">end</span></pre>
|
144
|
+
</div>
|
145
|
+
|
146
|
+
</div>
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
</div>
|
152
|
+
|
153
|
+
|
154
|
+
<div id="method-c-new" class="method-detail ">
|
155
|
+
|
156
|
+
<div class="method-heading">
|
157
|
+
<span class="method-name">new</span><span
|
158
|
+
class="method-args">()</span>
|
159
|
+
|
160
|
+
<span class="method-click-advice">click to toggle source</span>
|
161
|
+
|
162
|
+
</div>
|
163
|
+
|
164
|
+
|
165
|
+
<div class="method-description">
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
<div class="method-source-code" id="new-source">
|
173
|
+
<pre><span class="ruby-comment"># File test/test_rps.rb, line 33</span>
|
174
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>
|
175
|
+
<span class="ruby-ivar">@player_score</span> = <span class="ruby-ivar">@computer_score</span> = <span class="ruby-ivar">@ties</span> = <span class="ruby-value">0</span>
|
176
|
+
<span class="ruby-keyword">end</span></pre>
|
177
|
+
</div>
|
178
|
+
|
179
|
+
</div>
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
</div>
|
185
|
+
|
186
|
+
|
187
|
+
</section>
|
188
|
+
|
189
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
190
|
+
<header>
|
191
|
+
<h3>Public Instance Methods</h3>
|
192
|
+
</header>
|
193
|
+
|
194
|
+
|
195
|
+
<div id="method-i-testPlay" class="method-detail ">
|
196
|
+
|
197
|
+
<div class="method-heading">
|
198
|
+
<span class="method-name">testPlay</span><span
|
199
|
+
class="method-args">(winning_score)</span>
|
200
|
+
|
201
|
+
<span class="method-click-advice">click to toggle source</span>
|
202
|
+
|
203
|
+
</div>
|
204
|
+
|
205
|
+
|
206
|
+
<div class="method-description">
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
<div class="method-source-code" id="testPlay-source">
|
214
|
+
<pre><span class="ruby-comment"># File test/test_rps.rb, line 36</span>
|
215
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">testPlay</span>(<span class="ruby-identifier">winning_score</span>)
|
216
|
+
<span class="ruby-keyword">while</span> <span class="ruby-ivar">@player_score</span> <span class="ruby-operator"><</span> <span class="ruby-identifier">winning_score</span> <span class="ruby-operator">&&</span> <span class="ruby-ivar">@computer_score</span> <span class="ruby-operator"><</span> <span class="ruby-identifier">winning_score</span>
|
217
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-constant">ColorizedString</span>[<span class="ruby-node">"Player score: #{@player_score}, "</span>].<span class="ruby-identifier">colorize</span>(<span class="ruby-value">:blue</span>) <span class="ruby-operator">+</span>
|
218
|
+
<span class="ruby-constant">ColorizedString</span>[<span class="ruby-node">"Computer score: #{@computer_score}, Ties: #{@ties}"</span>].<span class="ruby-identifier">colorize</span>(<span class="ruby-value">:blue</span>)
|
219
|
+
<span class="ruby-identifier">player</span> = <span class="ruby-constant">PrivateMethods</span>.<span class="ruby-identifier">player_choice</span>
|
220
|
+
<span class="ruby-identifier">computer</span> = <span class="ruby-constant">Constants</span><span class="ruby-operator">::</span><span class="ruby-constant">COMPUTER_CHOICES</span>.<span class="ruby-identifier">sample</span>
|
221
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-constant">ColorizedString</span>[<span class="ruby-node">"\nPlayer chooses #{player.to_s.downcase}"</span>].<span class="ruby-identifier">colorize</span>(<span class="ruby-value">:blue</span>)
|
222
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-constant">ColorizedString</span>[<span class="ruby-node">"Computer chooses #{computer.to_s.downcase}"</span>].<span class="ruby-identifier">colorize</span>(<span class="ruby-value">:blue</span>)
|
223
|
+
<span class="ruby-keyword">case</span> <span class="ruby-constant">PrivateMethods</span>.<span class="ruby-identifier">player_outcome</span> [<span class="ruby-identifier">player</span>, <span class="ruby-identifier">computer</span>]
|
224
|
+
<span class="ruby-keyword">when</span> <span class="ruby-value">:WIN</span>
|
225
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-constant">ColorizedString</span>[<span class="ruby-node">"#{player.to_s.capitalize} beats #{computer.to_s.downcase}, player wins the round"</span>].<span class="ruby-identifier">colorize</span>(<span class="ruby-value">:red</span>)
|
226
|
+
<span class="ruby-ivar">@player_score</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
|
227
|
+
<span class="ruby-keyword">when</span> <span class="ruby-value">:LOSE</span>
|
228
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-constant">ColorizedString</span>[<span class="ruby-node">"#{computer.to_s.capitalize} beats #{player.to_s.downcase}, computer wins the round"</span>].<span class="ruby-identifier">colorize</span>(<span class="ruby-value">:red</span>)
|
229
|
+
<span class="ruby-ivar">@computer_score</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
|
230
|
+
<span class="ruby-keyword">else</span>
|
231
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-constant">ColorizedString</span>[<span class="ruby-string">"Tie, choose again"</span>].<span class="ruby-identifier">colorize</span>(<span class="ruby-value">:red</span>)
|
232
|
+
<span class="ruby-ivar">@ties</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
|
233
|
+
<span class="ruby-keyword">end</span>
|
234
|
+
<span class="ruby-keyword">end</span>
|
235
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-constant">ColorizedString</span>[<span class="ruby-node">"\nFinal score: player: #{@player_score}, "</span>].<span class="ruby-identifier">colorize</span>(<span class="ruby-value">:blue</span>) <span class="ruby-operator">+</span>
|
236
|
+
<span class="ruby-constant">ColorizedString</span>[<span class="ruby-node">"computer: #{@computer_score} (ties: #{@ties})"</span>].<span class="ruby-identifier">colorize</span>(<span class="ruby-value">:blue</span>)
|
237
|
+
<span class="ruby-keyword">case</span> <span class="ruby-constant">PrivateMethods</span>.<span class="ruby-identifier">final_outcome</span>(<span class="ruby-ivar">@player_score</span>, <span class="ruby-ivar">@computer_score</span>)
|
238
|
+
<span class="ruby-keyword">when</span> <span class="ruby-value">:WIN</span>
|
239
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-constant">ColorizedString</span>[<span class="ruby-string">"Player wins!"</span>].<span class="ruby-identifier">colorize</span>(<span class="ruby-value">:red</span>)
|
240
|
+
<span class="ruby-keyword">when</span> <span class="ruby-value">:LOSE</span>
|
241
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-constant">ColorizedString</span>[<span class="ruby-string">"Computer wins!"</span>].<span class="ruby-identifier">colorize</span>(<span class="ruby-value">:red</span>)
|
242
|
+
<span class="ruby-keyword">else</span>
|
243
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-constant">ColorizedString</span>[<span class="ruby-string">"It's a tie!"</span>].<span class="ruby-identifier">colorize</span>(<span class="ruby-value">:red</span>)
|
244
|
+
<span class="ruby-keyword">end</span>
|
245
|
+
<span class="ruby-identifier">gets</span>
|
246
|
+
<span class="ruby-keyword">end</span></pre>
|
247
|
+
</div>
|
248
|
+
|
249
|
+
</div>
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
|
254
|
+
</div>
|
255
|
+
|
256
|
+
|
257
|
+
</section>
|
258
|
+
|
259
|
+
</section>
|
260
|
+
</main>
|
261
|
+
|
262
|
+
|
263
|
+
<footer id="validator-badges" role="contentinfo">
|
264
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
265
|
+
<p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> 5.0.0.
|
266
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
267
|
+
</footer>
|
268
|
+
|