PlayRockPaperScissorsGame 2.7.9 → 2.8.0
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/.gitignore +1 -0
- data/docs/Code.md +1 -1
- data/docs/Comparing_Code.md +6 -2
- data/docs/_site/about.html +1 -1
- data/docs/_site/{Code.html → code.html} +2 -2
- data/docs/_site/{Comparing_Code.html → comparing_code.html} +7 -3
- data/docs/_site/{How_to_Build.html → 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 → testing.html} +1 -1
- data/lib/rps/version.rb +1 -1
- data/rps.gemspec +1 -1
- metadata +5 -5
- 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: 91fe0a10943f10d26075780f82436061b2c33694
|
4
|
+
data.tar.gz: 872ed616f7b7ee53c40f3f49b338c8523edf0cc8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99af906b83209f6cc05d6bb43091cb6094bd3124874239b0ff8f0bd64bb65ea0996fe14442c5a78fcd304006d66f5442b82cd2d56142d1ed29f846d78c957320
|
7
|
+
data.tar.gz: 47dc1afef12b516360604468f56bd024c016443c53cdf50fc5e278c532eaa6f7c0ac1dd2a77565d0ab2cf1de618cfe9db70a96eb62490f3b171e743020926ab2
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/.gitignore
CHANGED
data/docs/Code.md
CHANGED
data/docs/Comparing_Code.md
CHANGED
@@ -20,6 +20,10 @@ permalink: /comparing_code.html
|
|
20
20
|
- [Advanced Analysis](#advanced-analysis)
|
21
21
|
- [What Advanced Code Looks Like](#what-advanced-code-looks-like)
|
22
22
|
|
23
|
+
<!--
|
24
|
+
`rps`
|
25
|
+
-->
|
26
|
+
|
23
27
|
## Beginner's Code
|
24
28
|
|
25
29
|
### Beginner's Code Pros
|
@@ -123,7 +127,7 @@ Subtlety is usually painted all over advanced ruby code. While this does make th
|
|
123
127
|
class PlayRockPaperScissorsGame
|
124
128
|
|
125
129
|
module RockPaperScissors
|
126
|
-
VERSION = "2.
|
130
|
+
VERSION = "2.8.0"
|
127
131
|
end
|
128
132
|
|
129
133
|
# import colorize gem
|
@@ -218,7 +222,7 @@ class PlayRockPaperScissorsGame
|
|
218
222
|
end
|
219
223
|
end
|
220
224
|
end
|
221
|
-
def player_outcome(plays)
|
225
|
+
def player_outcome(plays)6/7
|
222
226
|
# plays = [player_choice, computer_choice]
|
223
227
|
return :WIN if Constants::WINNERS.include?(plays)
|
224
228
|
return :LOSE if Constants::LOSERS.include?(plays)
|
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=40fd554ba233dd5dd885d735ee322f76b99fd56b"/>
|
11
11
|
<link rel="stylesheet" href="assets/css/pace.css" />
|
12
12
|
<script src="assets/js/pace.min.js"></script>
|
13
13
|
|
@@ -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=40fd554ba233dd5dd885d735ee322f76b99fd56b"/>
|
11
11
|
<link rel="stylesheet" href="assets/css/pace.css" />
|
12
12
|
<script src="assets/js/pace.min.js"></script>
|
13
13
|
|
@@ -70,7 +70,7 @@
|
|
70
70
|
<span class="k">class</span> <span class="nc">PlayRockPaperScissorsGame</span>
|
71
71
|
|
72
72
|
<span class="k">module</span> <span class="nn">RockPaperScissors</span>
|
73
|
-
<span class="no">VERSION</span> <span class="o">=</span> <span class="s2">"2.
|
73
|
+
<span class="no">VERSION</span> <span class="o">=</span> <span class="s2">"2.8.0"</span>
|
74
74
|
<span class="k">end</span>
|
75
75
|
|
76
76
|
<span class="c1"># import the colorize gem</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=40fd554ba233dd5dd885d735ee322f76b99fd56b"/>
|
11
11
|
<link rel="stylesheet" href="assets/css/pace.css" />
|
12
12
|
<script src="assets/js/pace.min.js"></script>
|
13
13
|
|
@@ -70,6 +70,10 @@
|
|
70
70
|
</li>
|
71
71
|
</ul>
|
72
72
|
|
73
|
+
<!--
|
74
|
+
`rps`
|
75
|
+
-->
|
76
|
+
|
73
77
|
<h2 id="beginners-code">Beginner’s Code</h2>
|
74
78
|
|
75
79
|
<h3 id="beginners-code-pros">Beginner’s Code Pros</h3>
|
@@ -176,7 +180,7 @@
|
|
176
180
|
<div class="language-ruby highlighter-rouge"><pre class="highlight"><code><span class="k">class</span> <span class="nc">PlayRockPaperScissorsGame</span>
|
177
181
|
|
178
182
|
<span class="k">module</span> <span class="nn">RockPaperScissors</span>
|
179
|
-
<span class="no">VERSION</span> <span class="o">=</span> <span class="s2">"2.
|
183
|
+
<span class="no">VERSION</span> <span class="o">=</span> <span class="s2">"2.8.0"</span>
|
180
184
|
<span class="k">end</span>
|
181
185
|
|
182
186
|
<span class="c1"># import colorize gem</span>
|
@@ -271,7 +275,7 @@
|
|
271
275
|
<span class="k">end</span>
|
272
276
|
<span class="k">end</span>
|
273
277
|
<span class="k">end</span>
|
274
|
-
<span class="k">def</span> <span class="nf">player_outcome</span><span class="p">(</span><span class="n">plays</span><span class="p">)</span>
|
278
|
+
<span class="k">def</span> <span class="nf">player_outcome</span><span class="p">(</span><span class="n">plays</span><span class="p">)</span><span class="mi">6</span><span class="o">/</span><span class="mi">7</span>
|
275
279
|
<span class="c1"># plays = [player_choice, computer_choice]</span>
|
276
280
|
<span class="k">return</span> <span class="ss">:WIN</span> <span class="k">if</span> <span class="no">Constants</span><span class="o">::</span><span class="no">WINNERS</span><span class="p">.</span><span class="nf">include?</span><span class="p">(</span><span class="n">plays</span><span class="p">)</span>
|
277
281
|
<span class="k">return</span> <span class="ss">:LOSE</span> <span class="k">if</span> <span class="no">Constants</span><span class="o">::</span><span class="no">LOSERS</span><span class="p">.</span><span class="nf">include?</span><span class="p">(</span><span class="n">plays</span><span class="p">)</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=40fd554ba233dd5dd885d735ee322f76b99fd56b"/>
|
11
11
|
<link rel="stylesheet" href="assets/css/pace.css" />
|
12
12
|
<script src="assets/js/pace.min.js"></script>
|
13
13
|
|
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=40fd554ba233dd5dd885d735ee322f76b99fd56b"/>
|
11
11
|
<link rel="stylesheet" href="assets/css/pace.css" />
|
12
12
|
<script src="assets/js/pace.min.js"></script>
|
13
13
|
|
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=40fd554ba233dd5dd885d735ee322f76b99fd56b"/>
|
11
11
|
<link rel="stylesheet" href="assets/css/pace.css" />
|
12
12
|
<script src="assets/js/pace.min.js"></script>
|
13
13
|
|
@@ -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=40fd554ba233dd5dd885d735ee322f76b99fd56b"/>
|
11
11
|
<link rel="stylesheet" href="assets/css/pace.css" />
|
12
12
|
<script src="assets/js/pace.min.js"></script>
|
13
13
|
|
data/lib/rps/version.rb
CHANGED
data/rps.gemspec
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.
|
4
|
+
version: 2.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bag3318
|
@@ -136,10 +136,6 @@ files:
|
|
136
136
|
- docs/_sass/normalize.scss
|
137
137
|
- docs/_sass/rouge-github.scss
|
138
138
|
- docs/_sass/variables.scss
|
139
|
-
- docs/_site/Code.html
|
140
|
-
- docs/_site/Comparing_Code.html
|
141
|
-
- docs/_site/How_to_Build.html
|
142
|
-
- docs/_site/Testing.html
|
143
139
|
- docs/_site/about.html
|
144
140
|
- docs/_site/assets/css/pace.css
|
145
141
|
- docs/_site/assets/css/style.css
|
@@ -154,8 +150,12 @@ files:
|
|
154
150
|
- docs/_site/assets/favicons/mstile-150x150.png
|
155
151
|
- docs/_site/assets/favicons/safari-pinned-tab.svg
|
156
152
|
- docs/_site/assets/js/pace.min.js
|
153
|
+
- docs/_site/code.html
|
154
|
+
- docs/_site/comparing_code.html
|
155
|
+
- docs/_site/how_to_build.html
|
157
156
|
- docs/_site/how_to_run.html
|
158
157
|
- docs/_site/index.html
|
158
|
+
- docs/_site/testing.html
|
159
159
|
- docs/about.md
|
160
160
|
- docs/assets/css/pace.css
|
161
161
|
- docs/assets/css/style.scss
|
metadata.gz.sig
CHANGED
Binary file
|