PlayRockPaperScissorsGame 2.5.6 → 2.5.7
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 +2 -1
- data/docs/Code.md +2 -3
- data/docs/Comparing_Code.md +1 -1
- data/docs/_site/CODE_OF_CONDUCT.html +1 -1
- data/docs/_site/CONTRIBUTING.html +1 -1
- data/docs/_site/Code.html +3 -4
- data/docs/_site/Comparing_Code.html +2 -2
- data/docs/_site/How_to_Build.html +1 -1
- data/docs/_site/Testing.html +1 -1
- data/docs/_site/index.html +1 -1
- data/lib/rps/version.rb +1 -1
- data/rps.gemspec +1 -1
- data.tar.gz.sig +0 -0
- 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: 55768f48f32f5035b0741b4000659167dbb72b2f
|
4
|
+
data.tar.gz: f1ca53987b0fd2ca022f673d5a84b3c299f787df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28048ce3a5727ef9e2c48aae3b17ba05b46f3be09c9b084dfaac72d6ba57d6e388140e2be7c27f7e549c2de8c695dd7a11b5543c5f51b2877961082148888804
|
7
|
+
data.tar.gz: e43ddf623668e8a044c4cc5af898a7420897aa485169914770c94c807d96fcffbcaa991da9bc360dc5fa7fe57df9f19d7d2f36bf9301b1823cba0b9929889926
|
checksums.yaml.gz.sig
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
��4O��Gn�F�1?�V����>����j���L�1���_P��5��#% I}�Tn�5D�M�_�ң�z�w����n����I�gX����L�K���|bfʱ�����beyw�/�&q�t��d�N�h��t���:�='�i�BK����?Lg�H���D9���Xxژ��=��B
|
2
|
+
L�p�$�����1[mX��,�����hF��j��i'X��<q���
|
data/docs/Code.md
CHANGED
@@ -9,7 +9,7 @@ Master Code
|
|
9
9
|
|
10
10
|
**The master code will look like this:**
|
11
11
|
|
12
|
-
> Note: the code is
|
12
|
+
> Note: the code is a __Ruby executable__ and from my [RubyGem](https://rubygems.org/gems/PlayRockPaperScissorsGame)
|
13
13
|
|
14
14
|
[//]: # (`$ rps`)
|
15
15
|
[//]: # (`> rps`)
|
@@ -30,7 +30,7 @@ Master Code
|
|
30
30
|
class PlayRockPaperScissorsGame
|
31
31
|
|
32
32
|
module RockPaperScissors
|
33
|
-
VERSION = "2.5.
|
33
|
+
VERSION = "2.5.7"
|
34
34
|
end
|
35
35
|
|
36
36
|
# call the colorize gem
|
@@ -129,7 +129,6 @@ class PlayRockPaperScissorsGame
|
|
129
129
|
return :WIN if Constants::WINNERS.include?(plays)
|
130
130
|
return :LOSE if Constants::LOSERS.include?(plays)
|
131
131
|
return :TIE if !:WIN | !:LOSE
|
132
|
-
|
133
132
|
end
|
134
133
|
|
135
134
|
def final_outcome(pl,co)
|
data/docs/Comparing_Code.md
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=6a3bdba98f57ed8fa07597df91a178b68178b75f">
|
11
11
|
<link rel="stylesheet" href="assets/css/pace.css" />
|
12
12
|
<script src="assets/js/pace.min.js"></script>
|
13
13
|
</head>
|
@@ -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=6a3bdba98f57ed8fa07597df91a178b68178b75f">
|
11
11
|
<link rel="stylesheet" href="assets/css/pace.css" />
|
12
12
|
<script src="assets/js/pace.min.js"></script>
|
13
13
|
</head>
|
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=6a3bdba98f57ed8fa07597df91a178b68178b75f">
|
11
11
|
<link rel="stylesheet" href="assets/css/pace.css" />
|
12
12
|
<script src="assets/js/pace.min.js"></script>
|
13
13
|
</head>
|
@@ -40,7 +40,7 @@
|
|
40
40
|
<p><strong>The master code will look like this:</strong></p>
|
41
41
|
|
42
42
|
<blockquote>
|
43
|
-
<p>Note: the code is
|
43
|
+
<p>Note: the code is a <strong>Ruby executable</strong> and from my <a href="https://rubygems.org/gems/PlayRockPaperScissorsGame">RubyGem</a></p>
|
44
44
|
</blockquote>
|
45
45
|
|
46
46
|
<p><code class="highlighter-rouge">% rps</code></p>
|
@@ -58,7 +58,7 @@
|
|
58
58
|
<span class="k">class</span> <span class="nc">PlayRockPaperScissorsGame</span>
|
59
59
|
|
60
60
|
<span class="k">module</span> <span class="nn">RockPaperScissors</span>
|
61
|
-
<span class="no">VERSION</span> <span class="o">=</span> <span class="s2">"2.5.
|
61
|
+
<span class="no">VERSION</span> <span class="o">=</span> <span class="s2">"2.5.7"</span>
|
62
62
|
<span class="k">end</span>
|
63
63
|
|
64
64
|
<span class="c1"># call the colorize gem</span>
|
@@ -157,7 +157,6 @@
|
|
157
157
|
<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>
|
158
158
|
<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>
|
159
159
|
<span class="k">return</span> <span class="ss">:TIE</span> <span class="k">if</span> <span class="o">!</span><span class="ss">:WIN</span> <span class="o">|</span> <span class="o">!</span><span class="ss">:LOSE</span>
|
160
|
-
|
161
160
|
<span class="k">end</span>
|
162
161
|
|
163
162
|
<span class="k">def</span> <span class="nf">final_outcome</span><span class="p">(</span><span class="n">pl</span><span class="p">,</span><span class="n">co</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=6a3bdba98f57ed8fa07597df91a178b68178b75f">
|
11
11
|
<link rel="stylesheet" href="assets/css/pace.css" />
|
12
12
|
<script src="assets/js/pace.min.js"></script>
|
13
13
|
</head>
|
@@ -139,7 +139,7 @@
|
|
139
139
|
<div class="language-ruby highlighter-rouge"><pre class="highlight"><code><span class="k">class</span> <span class="nc">PlayRockPaperScissorsGame</span>
|
140
140
|
|
141
141
|
<span class="k">module</span> <span class="nn">RockPaperScissors</span>
|
142
|
-
<span class="no">VERSION</span> <span class="o">=</span> <span class="s2">"2.5.
|
142
|
+
<span class="no">VERSION</span> <span class="o">=</span> <span class="s2">"2.5.7"</span>
|
143
143
|
<span class="k">end</span>
|
144
144
|
|
145
145
|
<span class="c1"># import 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=6a3bdba98f57ed8fa07597df91a178b68178b75f">
|
11
11
|
<link rel="stylesheet" href="assets/css/pace.css" />
|
12
12
|
<script src="assets/js/pace.min.js"></script>
|
13
13
|
</head>
|
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=6a3bdba98f57ed8fa07597df91a178b68178b75f">
|
11
11
|
<link rel="stylesheet" href="assets/css/pace.css" />
|
12
12
|
<script src="assets/js/pace.min.js"></script>
|
13
13
|
</head>
|
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=6a3bdba98f57ed8fa07597df91a178b68178b75f">
|
11
11
|
<link rel="stylesheet" href="assets/css/pace.css" />
|
12
12
|
<script src="assets/js/pace.min.js"></script>
|
13
13
|
</head>
|
data/lib/rps/version.rb
CHANGED
data/rps.gemspec
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|