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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3b90c6bab03bbfd5cee1cfaac14997494bbf1c67
4
- data.tar.gz: 859adc29ffb31ea6e22267bdc490b49234d77aff
3
+ metadata.gz: ec342cfee0b36c6dcd0c67f446385345c1e1074b
4
+ data.tar.gz: fb9ad55638f72deaaab59c25f2a1a1deb24bb470
5
5
  SHA512:
6
- metadata.gz: a3e1cce8fc67cd79e9aaf146f1f5f9a8e5f97553b21296a91a91fca8796a0b66943f339abd4f1543aebac54da7d5679a0e808a40f9d066c4956c8d334842f3c8
7
- data.tar.gz: 76a8ed7aab9580a1e32a62c009288d34a8c90a837f83a17eb18c8d9b6aebae1f13dcfe74ef98ced7dce85c95ef54d79758fce3fad09bf3ede13f9541369fbd31
6
+ metadata.gz: 9e7db7b86155327f50b4f15ce6d2ca60814099362dd3059a3e46dc9b1148458165e1a723dc1537f45ccaab16f44bc09fbcc97ee8d1cb8b4ddfa4cb81a57f692b
7
+ data.tar.gz: 87ce5a4dff5f0e05c193730a77ac3d06c79dacd7f214799e52e4af0e7126075237c6175cbba7f37d843d2c97778c76224ed464e2a01ebccbf4a4131bf5f4b2c2
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
@@ -1 +1 @@
1
- &H�p9h�-Ű�IUnzNW'�8�ƅj�*�!�H�Ϧ��g���}9�d0U��K�pB���u��p����cWՇt��Oo�ܶD�6<��t5:�m5J��t������[�tf��x$�-fX|9Xw˂�H� u`y�j���B(_��ҝJ��e��gSP���r(��6���7�%��El�5J}�6Ю�D��9��0�M��[�K��\�_׼��'�A����{S��+si�3%��\�A�䚙���n�ps�F�#�
1
+ ?�/���rm��N0䫭��Ç�:�K]Fp��/79C\���}'>�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.4"
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)
@@ -99,7 +99,7 @@ __`% ruby advanced-rps.rb`__
99
99
  class PlayRockPaperScissorsGame
100
100
 
101
101
  module RockPaperScissors
102
- VERSION = "2.5.4"
102
+ VERSION = "2.5.5"
103
103
  end
104
104
 
105
105
  # import colorize gem
@@ -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=d37a82f64887a1366310743d3d4f672eee2de697">
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=d37a82f64887a1366310743d3d4f672eee2de697">
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=d37a82f64887a1366310743d3d4f672eee2de697">
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.4"</span>
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> <span class="c1"># define final outcome method</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">&gt;</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">&lt;</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=d37a82f64887a1366310743d3d4f672eee2de697">
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.4"</span>
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=d37a82f64887a1366310743d3d4f672eee2de697">
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=d37a82f64887a1366310743d3d4f672eee2de697">
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=d37a82f64887a1366310743d3d4f672eee2de697">
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
- * [Ruby Gems Page](https://rubygems.org/gems/PlayRockPaperScissorsGame)
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
@@ -1,3 +1,3 @@
1
1
  module RockPaperScissors
2
- VERSION = "2.5.4"
2
+ VERSION = "2.5.5"
3
3
  end
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"
4
- spec.date = "2017-05-01"
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
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-01 00:00:00.000000000 Z
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