PlayRockPaperScissorsGame 2.8.4 → 2.8.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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/docs/Code.md +3 -2
- data/docs/Comparing_Code.md +2 -2
- data/docs/_site/about.html +1 -1
- data/docs/_site/code.html +4 -3
- data/docs/_site/comparing_code.html +2 -2
- data/docs/_site/how_to_build.html +1 -1
- data/docs/_site/how_to_run.html +1 -1
- data/docs/_site/index.html +1 -1
- data/docs/_site/testing.html +1 -1
- data/lib/rps/version.rb +1 -1
- data/rps.gemspec +2 -2
- data.tar.gz.sig +3 -1
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3a6dfdcc74a14ecbefe281ba755ac93a736a2f93
|
|
4
|
+
data.tar.gz: be5826195d88896c23ac3ff91b52304560dcd25e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bb9df1e8aad3f10e0f7229c815d7b0a496eb3c42532a797898f81bf05e9161f28168d99a06b57951ab87ef604bfc43b4669e14cc9040b09534ee965ab0c6c16c
|
|
7
|
+
data.tar.gz: 615d24471c73afd12b893032ca9bf26dd18c1f375004007bc9a125ae3b97d5c4a12a3af0ba036172d5c19d2e0adc8a94c567232c1638dec40e8adeebd4968d32
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/docs/Code.md
CHANGED
|
@@ -35,7 +35,7 @@ Master Code
|
|
|
35
35
|
class PlayRockPaperScissorsGame
|
|
36
36
|
|
|
37
37
|
module RockPaperScissors
|
|
38
|
-
VERSION = "2.8.
|
|
38
|
+
VERSION = "2.8.5"
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
# import the colorize gem
|
|
@@ -60,7 +60,7 @@ class PlayRockPaperScissorsGame
|
|
|
60
60
|
LOSERS = WINNERS.map { |player_choice,computer_choice| [computer_choice,player_choice] } # this will take the original WINNERS array and flip the symbols, thus returning a loss for the user/player
|
|
61
61
|
INIT_STRINGS = [
|
|
62
62
|
ColorizedString["You are about to enter a rock-paper-scissors best of 3 match."].colorize(:green),
|
|
63
|
-
ColorizedString["Press the return/enter key to continue..."].colorize(:green),
|
|
63
|
+
ColorizedString["Press the return/enter key to continue..."].colorize(:green) ,
|
|
64
64
|
""
|
|
65
65
|
]
|
|
66
66
|
end
|
|
@@ -152,4 +152,5 @@ end
|
|
|
152
152
|
|
|
153
153
|
PlayRockPaperScissorsGame.new.play(2) # call the play method and pass in 3 (0, 1, 2) for the winning score
|
|
154
154
|
```
|
|
155
|
+
|
|
155
156
|
[//]: # "end ruby"
|
data/docs/Comparing_Code.md
CHANGED
|
@@ -55,7 +55,7 @@ In this particular case, the advanced code is longer and more confusing, though
|
|
|
55
55
|
### What Beginner's Code Looks Like
|
|
56
56
|
|
|
57
57
|
[//]: # "`% ruby beginner-rps.rb`"
|
|
58
|
-
|
|
58
|
+
|
|
59
59
|
```bash
|
|
60
60
|
% ruby beginner-rps.rb
|
|
61
61
|
```
|
|
@@ -143,7 +143,7 @@ class PlayRockPaperScissorsGame
|
|
|
143
143
|
LOSERS = WINNERS.map { |player_choice,computer_choice| [computer_choice,player_choice] } # flip the values in the WINNERS array, returning a loss
|
|
144
144
|
INIT_STRINGS = [
|
|
145
145
|
"You are about to enter a rock-paper-scissors best of 3 match.",
|
|
146
|
-
"Press the return/enter key to continue...",
|
|
146
|
+
"Press the return/enter key to continue..." ,
|
|
147
147
|
""
|
|
148
148
|
]
|
|
149
149
|
end
|
data/docs/_site/about.html
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
8
8
|
<meta name="theme-color" content="#157878"/>
|
|
9
9
|
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css' />
|
|
10
|
-
<link rel="stylesheet" href="/assets/css/style.css?v=
|
|
10
|
+
<link rel="stylesheet" href="/assets/css/style.css?v=cc4e88700a84e9459b417c59fb9c1be9e3fdb7ad"/>
|
|
11
11
|
<script src="assets/js/pace.min.js"></script>
|
|
12
12
|
|
|
13
13
|
<link rel="apple-touch-icon" sizes="180x180" href="assets/favicons/apple-touch-icon.png"/>
|
data/docs/_site/code.html
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
8
8
|
<meta name="theme-color" content="#157878"/>
|
|
9
9
|
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css' />
|
|
10
|
-
<link rel="stylesheet" href="/assets/css/style.css?v=
|
|
10
|
+
<link rel="stylesheet" href="/assets/css/style.css?v=cc4e88700a84e9459b417c59fb9c1be9e3fdb7ad"/>
|
|
11
11
|
<script src="assets/js/pace.min.js"></script>
|
|
12
12
|
|
|
13
13
|
<link rel="apple-touch-icon" sizes="180x180" href="assets/favicons/apple-touch-icon.png"/>
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
<span class="k">class</span> <span class="nc">PlayRockPaperScissorsGame</span>
|
|
70
70
|
|
|
71
71
|
<span class="k">module</span> <span class="nn">RockPaperScissors</span>
|
|
72
|
-
<span class="no">VERSION</span> <span class="o">=</span> <span class="s2">"2.8.
|
|
72
|
+
<span class="no">VERSION</span> <span class="o">=</span> <span class="s2">"2.8.5"</span>
|
|
73
73
|
<span class="k">end</span>
|
|
74
74
|
|
|
75
75
|
<span class="c1"># import the colorize gem</span>
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
<span class="no">LOSERS</span> <span class="o">=</span> <span class="no">WINNERS</span><span class="p">.</span><span class="nf">map</span> <span class="p">{</span> <span class="o">|</span><span class="n">player_choice</span><span class="p">,</span><span class="n">computer_choice</span><span class="o">|</span> <span class="p">[</span><span class="n">computer_choice</span><span class="p">,</span><span class="n">player_choice</span><span class="p">]</span> <span class="p">}</span> <span class="c1"># this will take the original WINNERS array and flip the symbols, thus returning a loss for the user/player</span>
|
|
95
95
|
<span class="no">INIT_STRINGS</span> <span class="o">=</span> <span class="p">[</span>
|
|
96
96
|
<span class="no">ColorizedString</span><span class="p">[</span><span class="s2">"You are about to enter a rock-paper-scissors best of 3 match."</span><span class="p">].</span><span class="nf">colorize</span><span class="p">(</span><span class="ss">:green</span><span class="p">),</span>
|
|
97
|
-
<span class="no">ColorizedString</span><span class="p">[</span><span class="s2">"Press the return/enter key to continue..."</span><span class="p">].</span><span class="nf">colorize</span><span class="p">(</span><span class="ss">:green</span><span class="p">)
|
|
97
|
+
<span class="no">ColorizedString</span><span class="p">[</span><span class="s2">"Press the return/enter key to continue..."</span><span class="p">].</span><span class="nf">colorize</span><span class="p">(</span><span class="ss">:green</span><span class="p">)</span> <span class="p">,</span>
|
|
98
98
|
<span class="s2">""</span>
|
|
99
99
|
<span class="p">]</span>
|
|
100
100
|
<span class="k">end</span>
|
|
@@ -188,6 +188,7 @@
|
|
|
188
188
|
</code></pre>
|
|
189
189
|
</div>
|
|
190
190
|
|
|
191
|
+
|
|
191
192
|
|
|
192
193
|
<footer class="site-footer">
|
|
193
194
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
8
8
|
<meta name="theme-color" content="#157878"/>
|
|
9
9
|
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css' />
|
|
10
|
-
<link rel="stylesheet" href="/assets/css/style.css?v=
|
|
10
|
+
<link rel="stylesheet" href="/assets/css/style.css?v=cc4e88700a84e9459b417c59fb9c1be9e3fdb7ad"/>
|
|
11
11
|
<script src="assets/js/pace.min.js"></script>
|
|
12
12
|
|
|
13
13
|
<link rel="apple-touch-icon" sizes="180x180" href="assets/favicons/apple-touch-icon.png"/>
|
|
@@ -195,7 +195,7 @@
|
|
|
195
195
|
<span class="no">LOSERS</span> <span class="o">=</span> <span class="no">WINNERS</span><span class="p">.</span><span class="nf">map</span> <span class="p">{</span> <span class="o">|</span><span class="n">player_choice</span><span class="p">,</span><span class="n">computer_choice</span><span class="o">|</span> <span class="p">[</span><span class="n">computer_choice</span><span class="p">,</span><span class="n">player_choice</span><span class="p">]</span> <span class="p">}</span> <span class="c1"># flip the values in the WINNERS array, returning a loss</span>
|
|
196
196
|
<span class="no">INIT_STRINGS</span> <span class="o">=</span> <span class="p">[</span>
|
|
197
197
|
<span class="s2">"You are about to enter a rock-paper-scissors best of 3 match."</span><span class="p">,</span>
|
|
198
|
-
<span class="s2">"Press the return/enter key to continue..."</span
|
|
198
|
+
<span class="s2">"Press the return/enter key to continue..."</span> <span class="p">,</span>
|
|
199
199
|
<span class="s2">""</span>
|
|
200
200
|
<span class="p">]</span>
|
|
201
201
|
<span class="k">end</span>
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
8
8
|
<meta name="theme-color" content="#157878"/>
|
|
9
9
|
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css' />
|
|
10
|
-
<link rel="stylesheet" href="/assets/css/style.css?v=
|
|
10
|
+
<link rel="stylesheet" href="/assets/css/style.css?v=cc4e88700a84e9459b417c59fb9c1be9e3fdb7ad"/>
|
|
11
11
|
<script src="assets/js/pace.min.js"></script>
|
|
12
12
|
|
|
13
13
|
<link rel="apple-touch-icon" sizes="180x180" href="assets/favicons/apple-touch-icon.png"/>
|
data/docs/_site/how_to_run.html
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
8
8
|
<meta name="theme-color" content="#157878"/>
|
|
9
9
|
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css' />
|
|
10
|
-
<link rel="stylesheet" href="/assets/css/style.css?v=
|
|
10
|
+
<link rel="stylesheet" href="/assets/css/style.css?v=cc4e88700a84e9459b417c59fb9c1be9e3fdb7ad"/>
|
|
11
11
|
<script src="assets/js/pace.min.js"></script>
|
|
12
12
|
|
|
13
13
|
<link rel="apple-touch-icon" sizes="180x180" href="assets/favicons/apple-touch-icon.png"/>
|
data/docs/_site/index.html
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
8
8
|
<meta name="theme-color" content="#157878"/>
|
|
9
9
|
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css' />
|
|
10
|
-
<link rel="stylesheet" href="/assets/css/style.css?v=
|
|
10
|
+
<link rel="stylesheet" href="/assets/css/style.css?v=cc4e88700a84e9459b417c59fb9c1be9e3fdb7ad"/>
|
|
11
11
|
<script src="assets/js/pace.min.js"></script>
|
|
12
12
|
|
|
13
13
|
<link rel="apple-touch-icon" sizes="180x180" href="assets/favicons/apple-touch-icon.png"/>
|
data/docs/_site/testing.html
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
8
8
|
<meta name="theme-color" content="#157878"/>
|
|
9
9
|
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css' />
|
|
10
|
-
<link rel="stylesheet" href="/assets/css/style.css?v=
|
|
10
|
+
<link rel="stylesheet" href="/assets/css/style.css?v=cc4e88700a84e9459b417c59fb9c1be9e3fdb7ad"/>
|
|
11
11
|
<script src="assets/js/pace.min.js"></script>
|
|
12
12
|
|
|
13
13
|
<link rel="apple-touch-icon" sizes="180x180" href="assets/favicons/apple-touch-icon.png"/>
|
data/lib/rps/version.rb
CHANGED
data/rps.gemspec
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Gem::Specification.new do |spec|
|
|
2
2
|
spec.name = "PlayRockPaperScissorsGame"
|
|
3
|
-
spec.version = "2.8.
|
|
4
|
-
spec.date = "2017-05-
|
|
3
|
+
spec.version = "2.8.5"
|
|
4
|
+
spec.date = "2017-05-22"
|
|
5
5
|
spec.summary = "A Rock Paper Scissors Ruby Gem"
|
|
6
6
|
spec.description = <<-EOF
|
|
7
7
|
A Ruby-programmed rock paper scissors game.
|
data.tar.gz.sig
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: PlayRockPaperScissorsGame
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.8.
|
|
4
|
+
version: 2.8.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- bag3318
|
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
|
30
30
|
ft+uhriUZSVDBJRLSlrQEH2f0866a9dA4oUmvvFU46Mh6pozDjOcLJIp/tCnbVOc
|
|
31
31
|
HSdXPrjfOoDbhBPH/4wUd5P0rDoNKN1hxH4SzA==
|
|
32
32
|
-----END CERTIFICATE-----
|
|
33
|
-
date: 2017-05-
|
|
33
|
+
date: 2017-05-22 00:00:00.000000000 Z
|
|
34
34
|
dependencies:
|
|
35
35
|
- !ruby/object:Gem::Dependency
|
|
36
36
|
name: bundler
|
metadata.gz.sig
CHANGED
|
Binary file
|