PlayRockPaperScissorsGame 2.8.0 → 2.8.1
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/docs/Code.md +1 -1
- data/docs/Comparing_Code.md +2 -2
- data/docs/_site/about.html +1 -1
- data/docs/_site/code.html +2 -2
- data/docs/_site/comparing_code.html +3 -3
- 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 +1 -1
- metadata +1 -1
- 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: 4ae05fa7b0c19d8416779caffd02720d4d1a847b
|
4
|
+
data.tar.gz: 7140978592453d3fc65579ee0057dde5abf1b0ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ee5c8cd2541621d8b53888ba36994e2a1c973269ac240951a4390986ad17670124e3a6e6155ee25b992d91f9b3a71163914b1f2f3f47ca8bd73ec278df42fba
|
7
|
+
data.tar.gz: 3a86f279deda20abb6557b897575643d3dfbb54d1f099b511903be1b40c86635ece46d88726392594d9364fbfcd6e3f73a98aabb2a71c266cfaba770bd826dad
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/docs/Code.md
CHANGED
data/docs/Comparing_Code.md
CHANGED
@@ -127,7 +127,7 @@ Subtlety is usually painted all over advanced ruby code. While this does make th
|
|
127
127
|
class PlayRockPaperScissorsGame
|
128
128
|
|
129
129
|
module RockPaperScissors
|
130
|
-
VERSION = "2.8.
|
130
|
+
VERSION = "2.8.1"
|
131
131
|
end
|
132
132
|
|
133
133
|
# import colorize gem
|
@@ -222,7 +222,7 @@ class PlayRockPaperScissorsGame
|
|
222
222
|
end
|
223
223
|
end
|
224
224
|
end
|
225
|
-
def player_outcome(plays)
|
225
|
+
def player_outcome(plays)
|
226
226
|
# plays = [player_choice, computer_choice]
|
227
227
|
return :WIN if Constants::WINNERS.include?(plays)
|
228
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=c46505eeb4961fb291d8d479070989966f8c5733"/>
|
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/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=c46505eeb4961fb291d8d479070989966f8c5733"/>
|
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.8.
|
73
|
+
<span class="no">VERSION</span> <span class="o">=</span> <span class="s2">"2.8.1"</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=c46505eeb4961fb291d8d479070989966f8c5733"/>
|
11
11
|
<link rel="stylesheet" href="assets/css/pace.css" />
|
12
12
|
<script src="assets/js/pace.min.js"></script>
|
13
13
|
|
@@ -180,7 +180,7 @@
|
|
180
180
|
<div class="language-ruby highlighter-rouge"><pre class="highlight"><code><span class="k">class</span> <span class="nc">PlayRockPaperScissorsGame</span>
|
181
181
|
|
182
182
|
<span class="k">module</span> <span class="nn">RockPaperScissors</span>
|
183
|
-
<span class="no">VERSION</span> <span class="o">=</span> <span class="s2">"2.8.
|
183
|
+
<span class="no">VERSION</span> <span class="o">=</span> <span class="s2">"2.8.1"</span>
|
184
184
|
<span class="k">end</span>
|
185
185
|
|
186
186
|
<span class="c1"># import colorize gem</span>
|
@@ -275,7 +275,7 @@
|
|
275
275
|
<span class="k">end</span>
|
276
276
|
<span class="k">end</span>
|
277
277
|
<span class="k">end</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
|
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>
|
279
279
|
<span class="c1"># plays = [player_choice, computer_choice]</span>
|
280
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>
|
281
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=c46505eeb4961fb291d8d479070989966f8c5733"/>
|
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=c46505eeb4961fb291d8d479070989966f8c5733"/>
|
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=c46505eeb4961fb291d8d479070989966f8c5733"/>
|
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/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=c46505eeb4961fb291d8d479070989966f8c5733"/>
|
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
metadata.gz.sig
CHANGED
Binary file
|