PlayRockPaperScissorsGame 2.5.4 → 2.5.5
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 +1 -1
- data/docs/Code.md +3 -1
- 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 +5 -3
- 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 +2 -1
- data/docs/index.md +2 -1
- data/lib/rps/version.rb +1 -1
- data/rps.gemspec +2 -2
- 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: ec342cfee0b36c6dcd0c67f446385345c1e1074b
|
4
|
+
data.tar.gz: fb9ad55638f72deaaab59c25f2a1a1deb24bb470
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e7db7b86155327f50b4f15ce6d2ca60814099362dd3059a3e46dc9b1148458165e1a723dc1537f45ccaab16f44bc09fbcc97ee8d1cb8b4ddfa4cb81a57f692b
|
7
|
+
data.tar.gz: 87ce5a4dff5f0e05c193730a77ac3d06c79dacd7f214799e52e4af0e7126075237c6175cbba7f37d843d2c97778c76224ed464e2a01ebccbf4a4131bf5f4b2c2
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
?�/���r�m��N�0䫭��Ç�:�K]Fp��/79�C\���}'>�l(@n&
|
data/docs/Code.md
CHANGED
@@ -30,7 +30,7 @@ __`% rps`__
|
|
30
30
|
class PlayRockPaperScissorsGame
|
31
31
|
|
32
32
|
module RockPaperScissors
|
33
|
-
VERSION = "2.5.
|
33
|
+
VERSION = "2.5.5"
|
34
34
|
end
|
35
35
|
|
36
36
|
# call the colorize gem
|
@@ -125,9 +125,11 @@ class PlayRockPaperScissorsGame
|
|
125
125
|
end
|
126
126
|
|
127
127
|
def player_outcome(plays)
|
128
|
+
# plays = [player_choice, computer_choice]
|
128
129
|
return :WIN if Constants::WINNERS.include?(plays)
|
129
130
|
return :LOSE if Constants::LOSERS.include?(plays)
|
130
131
|
return :TIE if !:WIN | !:LOSE
|
132
|
+
|
131
133
|
end
|
132
134
|
|
133
135
|
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=df71b64c1cf8a55d80140be94a8ed2e418b1acc4">
|
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=df71b64c1cf8a55d80140be94a8ed2e418b1acc4">
|
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=df71b64c1cf8a55d80140be94a8ed2e418b1acc4">
|
11
11
|
<link rel="stylesheet" href="assets/css/pace.css" />
|
12
12
|
<script src="assets/js/pace.min.js"></script>
|
13
13
|
</head>
|
@@ -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.5"</span>
|
62
62
|
<span class="k">end</span>
|
63
63
|
|
64
64
|
<span class="c1"># call the colorize gem</span>
|
@@ -153,12 +153,14 @@
|
|
153
153
|
<span class="k">end</span>
|
154
154
|
|
155
155
|
<span class="k">def</span> <span class="nf">player_outcome</span><span class="p">(</span><span class="n">plays</span><span class="p">)</span>
|
156
|
+
<span class="c1"># plays = [player_choice, computer_choice]</span>
|
156
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>
|
157
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>
|
158
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
|
+
|
159
161
|
<span class="k">end</span>
|
160
162
|
|
161
|
-
<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>
|
163
|
+
<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>
|
162
164
|
<span class="k">return</span> <span class="ss">:WIN</span> <span class="k">if</span> <span class="n">pl</span> <span class="o">></span> <span class="n">co</span>
|
163
165
|
<span class="k">return</span> <span class="ss">:LOSE</span> <span class="k">if</span> <span class="n">pl</span> <span class="o"><</span> <span class="n">co</span>
|
164
166
|
<span class="c1"># there will never be a tie due to the code in the play() method</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=df71b64c1cf8a55d80140be94a8ed2e418b1acc4">
|
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.5"</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=df71b64c1cf8a55d80140be94a8ed2e418b1acc4">
|
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=df71b64c1cf8a55d80140be94a8ed2e418b1acc4">
|
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=df71b64c1cf8a55d80140be94a8ed2e418b1acc4">
|
11
11
|
<link rel="stylesheet" href="assets/css/pace.css" />
|
12
12
|
<script src="assets/js/pace.min.js"></script>
|
13
13
|
</head>
|
@@ -106,6 +106,7 @@
|
|
106
106
|
|
107
107
|
<ul>
|
108
108
|
<li><a href="https://rubygems.org/gems/PlayRockPaperScissorsGame">Ruby Gems Page</a></li>
|
109
|
+
<li><a href="https://github.com/bag3318/RockPaperScissors">Source Code</a></li>
|
109
110
|
</ul>
|
110
111
|
|
111
112
|
<hr />
|
data/docs/index.md
CHANGED
@@ -50,7 +50,8 @@ How to Run and Install
|
|
50
50
|
|
51
51
|
## Links
|
52
52
|
|
53
|
-
|
53
|
+
+ [Ruby Gems Page](https://rubygems.org/gems/PlayRockPaperScissorsGame)
|
54
|
+
- [Source Code](https://github.com/bag3318/RockPaperScissors)
|
54
55
|
|
55
56
|
______________
|
56
57
|
|
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.5.
|
4
|
-
spec.date = "2017-05-
|
3
|
+
spec.version = "2.5.5"
|
4
|
+
spec.date = "2017-05-02"
|
5
5
|
spec.summary = "A Rock Paper Scissors Ruby Gem"
|
6
6
|
spec.description = <<-EOF
|
7
7
|
A Ruby-programmed rock paper scissors game.
|
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.5.
|
4
|
+
version: 2.5.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-02 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: bundler
|
metadata.gz.sig
CHANGED
Binary file
|