RPSrb 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/RPSrb.gemspec +2 -2
- data/doc/RPSrb.html +2 -4
- data/doc/RockPaperScissors.html +8 -10
- data/doc/created.rid +4 -4
- data/doc/index.html +2 -2
- data/doc/js/navigation.js.gz +0 -0
- data/doc/js/search_index.js.gz +0 -0
- data/doc/js/searcher.js.gz +0 -0
- data/doc/table_of_contents.html +2 -2
- data/lib/RPSrb/Version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b5d971071d5b31eac1c62c7a5fbaa9272b10acf50e582920e1882f9490992b5f
|
4
|
+
data.tar.gz: 993e3a77f4354745a8a26a5244c74cdf777ab7496b54fb5d25c39e52ae196bf8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '09c0b8b78c522dcc91c057a3278ca904ce66e7e6fb675b166b7bed0e76c19949d2d0dfa31725d54b54b995a759bcb8c6c6de7102fbfdae78b50d8972bc12a95f'
|
7
|
+
data.tar.gz: 2e59f62aa7e638f6ab32e3fee0b0ca6becbc667441fcde5154fcc291806af5970a04986a73ff736f144b49454afae13c53a86c7a11f5a4a3916f255a1d6c6696
|
data/RPSrb.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = "RPSrb"
|
3
|
-
spec.version = "0.1.
|
4
|
-
spec.date = "2017-
|
3
|
+
spec.version = "0.1.5"
|
4
|
+
spec.date = "2017-03-07" # format: YYYY/MM/DD
|
5
5
|
spec.summary = "A Rock Paper Scissors Game RubyGem"
|
6
6
|
spec.description = <<-EOF
|
7
7
|
A Ruby-programmed rock paper scissors game.
|
data/doc/RPSrb.html
CHANGED
@@ -76,8 +76,6 @@
|
|
76
76
|
</section>
|
77
77
|
|
78
78
|
|
79
|
-
|
80
|
-
|
81
79
|
<section id="5Buntitled-5D" class="documentation-section">
|
82
80
|
|
83
81
|
|
@@ -107,8 +105,8 @@
|
|
107
105
|
|
108
106
|
|
109
107
|
<footer id="validator-badges" role="contentinfo">
|
110
|
-
<p><a href="
|
111
|
-
<p>Generated by <a href="https://
|
108
|
+
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
109
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.0.1.
|
112
110
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
113
111
|
</footer>
|
114
112
|
|
data/doc/RockPaperScissors.html
CHANGED
@@ -99,8 +99,6 @@
|
|
99
99
|
</section>
|
100
100
|
|
101
101
|
|
102
|
-
|
103
|
-
|
104
102
|
<section id="5Buntitled-5D" class="documentation-section">
|
105
103
|
|
106
104
|
|
@@ -188,7 +186,7 @@
|
|
188
186
|
|
189
187
|
<div class="method-source-code" id="continue-source">
|
190
188
|
<pre><span class="ruby-comment"># File lib/RockPaperScissors.rb, line 42</span>
|
191
|
-
<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>)
|
189
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">continue</span>(<span class="ruby-identifier">str1</span>,<span class="ruby-identifier">str2</span>,<span class="ruby-identifier">str3</span>)
|
192
190
|
<span class="ruby-identifier">puts</span> <span class="ruby-identifier">str1</span>
|
193
191
|
<span class="ruby-identifier">print</span> <span class="ruby-identifier">str2</span>
|
194
192
|
<span class="ruby-identifier">gets</span>
|
@@ -224,7 +222,7 @@
|
|
224
222
|
|
225
223
|
<div class="method-source-code" id="new-source">
|
226
224
|
<pre><span class="ruby-comment"># File lib/RockPaperScissors.rb, line 53</span>
|
227
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>
|
225
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span>
|
228
226
|
<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>
|
229
227
|
<span class="ruby-keyword">end</span></pre>
|
230
228
|
</div>
|
@@ -267,7 +265,7 @@
|
|
267
265
|
|
268
266
|
<div class="method-source-code" id="final_outcome-source">
|
269
267
|
<pre><span class="ruby-comment"># File lib/RockPaperScissors.rb, line 117</span>
|
270
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">final_outcome</span>(<span class="ruby-identifier">pl</span>, <span class="ruby-identifier">co</span>)
|
268
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">final_outcome</span>(<span class="ruby-identifier">pl</span>, <span class="ruby-identifier">co</span>)
|
271
269
|
<span class="ruby-keyword">return</span> <span class="ruby-value">:WIN</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">pl</span> <span class="ruby-operator">></span> <span class="ruby-identifier">co</span>
|
272
270
|
<span class="ruby-keyword">return</span> <span class="ruby-value">:LOSE</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">pl</span> <span class="ruby-operator"><</span> <span class="ruby-identifier">co</span>
|
273
271
|
<span class="ruby-keyword">end</span></pre>
|
@@ -303,7 +301,7 @@
|
|
303
301
|
|
304
302
|
<div class="method-source-code" id="play-source">
|
305
303
|
<pre><span class="ruby-comment"># File lib/RockPaperScissors.rb, line 59</span>
|
306
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">play</span>(<span class="ruby-identifier">winning_score</span>)
|
304
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">play</span>(<span class="ruby-identifier">winning_score</span>)
|
307
305
|
<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>
|
308
306
|
<span class="ruby-identifier">puts</span> <span class="ruby-node">"\nPlayer score: #{@player_score}, "</span> <span class="ruby-operator">+</span>
|
309
307
|
<span class="ruby-node">"Computer score: #{@computer_score}, Ties: #{@ties}.\n"</span>
|
@@ -366,7 +364,7 @@
|
|
366
364
|
|
367
365
|
<div class="method-source-code" id="player_choice-source">
|
368
366
|
<pre><span class="ruby-comment"># File lib/RockPaperScissors.rb, line 93</span>
|
369
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">player_choice</span>
|
367
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">player_choice</span>
|
370
368
|
<span class="ruby-identifier">loop</span> <span class="ruby-keyword">do</span>
|
371
369
|
<span class="ruby-identifier">print</span> <span class="ruby-string">"\nChoose: Rock (r), Paper (p), or Scissors (s): "</span>
|
372
370
|
<span class="ruby-identifier">choice</span> = <span class="ruby-identifier">gets</span>.<span class="ruby-identifier">chomp</span>.<span class="ruby-identifier">downcase</span>
|
@@ -411,7 +409,7 @@
|
|
411
409
|
|
412
410
|
<div class="method-source-code" id="player_outcome-source">
|
413
411
|
<pre><span class="ruby-comment"># File lib/RockPaperScissors.rb, line 109</span>
|
414
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">player_outcome</span>(<span class="ruby-identifier">plays</span>)
|
412
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">player_outcome</span>(<span class="ruby-identifier">plays</span>)
|
415
413
|
<span class="ruby-keyword">return</span> <span class="ruby-value">:WIN</span> <span class="ruby-keyword">if</span> <span class="ruby-constant">WINNERS</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">plays</span>)
|
416
414
|
<span class="ruby-keyword">return</span> <span class="ruby-value">:LOSE</span> <span class="ruby-keyword">if</span> <span class="ruby-constant">LOSERS</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">plays</span>)
|
417
415
|
<span class="ruby-keyword">return</span> <span class="ruby-value">:TIE</span> <span class="ruby-keyword">if</span> <span class="ruby-operator">!</span><span class="ruby-value">:WIN</span> <span class="ruby-operator">|</span> <span class="ruby-operator">!</span><span class="ruby-value">:LOSE</span>
|
@@ -433,8 +431,8 @@
|
|
433
431
|
|
434
432
|
|
435
433
|
<footer id="validator-badges" role="contentinfo">
|
436
|
-
<p><a href="
|
437
|
-
<p>Generated by <a href="https://
|
434
|
+
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
435
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.0.1.
|
438
436
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
439
437
|
</footer>
|
440
438
|
|
data/doc/created.rid
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
2
|
-
lib/exec.rb
|
3
|
-
lib/RockPaperScissors.rb
|
4
|
-
lib/RPSrb/Version.rb
|
1
|
+
Wed, 07 Mar 2018 13:30:59 -0800
|
2
|
+
lib/exec.rb Wed, 07 Mar 2018 12:21:44 -0800
|
3
|
+
lib/RockPaperScissors.rb Wed, 07 Mar 2018 12:21:44 -0800
|
4
|
+
lib/RPSrb/Version.rb Wed, 07 Mar 2018 12:21:44 -0800
|
data/doc/index.html
CHANGED
@@ -76,8 +76,8 @@
|
|
76
76
|
|
77
77
|
|
78
78
|
<footer id="validator-badges" role="contentinfo">
|
79
|
-
<p><a href="
|
80
|
-
<p>Generated by <a href="https://
|
79
|
+
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
80
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.0.1.
|
81
81
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
82
82
|
</footer>
|
83
83
|
|
data/doc/js/navigation.js.gz
CHANGED
Binary file
|
data/doc/js/search_index.js.gz
CHANGED
Binary file
|
data/doc/js/searcher.js.gz
CHANGED
Binary file
|
data/doc/table_of_contents.html
CHANGED
@@ -75,8 +75,8 @@
|
|
75
75
|
|
76
76
|
|
77
77
|
<footer id="validator-badges" role="contentinfo">
|
78
|
-
<p><a href="
|
79
|
-
<p>Generated by <a href="https://
|
78
|
+
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
79
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.0.1.
|
80
80
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
81
81
|
</footer>
|
82
82
|
|
data/lib/RPSrb/Version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: RPSrb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bag3318
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -183,7 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
183
183
|
requirements:
|
184
184
|
- A Windows or Mac computer
|
185
185
|
rubyforge_project:
|
186
|
-
rubygems_version: 2.
|
186
|
+
rubygems_version: 2.7.3
|
187
187
|
signing_key:
|
188
188
|
specification_version: 4
|
189
189
|
summary: A Rock Paper Scissors Game RubyGem
|