PlayRockPaperScissorsGame 2.4.9 → 2.5.0

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: 54f01ef76c3e42e4d1acd55182d6d565f6116a9b
4
- data.tar.gz: 5aaf18992fe4ea6256945195f01dac1428d8f090
3
+ metadata.gz: ef1ec64e00d6729ef61ce31b6e866363e72cae31
4
+ data.tar.gz: 4af1bd01f2bea29390f4093b2ef059911ca34767
5
5
  SHA512:
6
- metadata.gz: 550033df84e48efc751bfddcb1bb558403f66cd22c32ecf3010d7267485e5356fdd510f0d980a7e2e70562f84c8bfda0ed7d854f2ffba4b9d57cfc24a0add66c
7
- data.tar.gz: 4069cf12537b1735d509ed4f4621c757ee61388a79b59dbab2a3ffe05dd3767606042cd8546485645116810670c09db629013451d0fc1a42dcf065db6ce9eb9b
6
+ metadata.gz: 7baa8633e037d7b4a05ab867e002142d60fb7ffb863a634d292f1a82ed4a777dedfa0819035bda93f40f672c3edf7d9f0b7a75a530f26408b0eb8c9c35a76f52
7
+ data.tar.gz: aa0b6fe79d61e86f744f80e9dab95538cace9865cabe9ad2546a61463d3fba0d9bf480c38a8da9ab00bf116fe52f592ad436721e562d36678f5c545e0c7e4c9f
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  layout: default
3
3
  title: Master Code - Play Rock Paper Scissors Game
4
+ permalink: /Code.html
4
5
  ---
5
6
 
6
7
  [//]: # (begin markdown)
@@ -9,7 +10,7 @@ title: Master Code - Play Rock Paper Scissors Game
9
10
 
10
11
  **The master code will look like this:**
11
12
 
12
- > Note: the code is an executable and from a RubyGem
13
+ > Note: the code is an executable and from my RubyGem
13
14
 
14
15
  [//]: # (`$ rps`)
15
16
  [//]: # (`> rps`)
@@ -30,7 +31,7 @@ __`% rps`__
30
31
  class PlayRockPaperScissorsGame # define master class
31
32
 
32
33
  module RockPaperScissors
33
- VERSION = "2.4.9" # define version constant
34
+ VERSION = "2.5.0" # define version constant
34
35
  end
35
36
 
36
37
  # intiate the colorize gem
@@ -39,7 +40,7 @@ class PlayRockPaperScissorsGame # define master class
39
40
  ColorizedString.modes # import modes; ex: bold, italic, underline
40
41
 
41
42
  module Constants
42
- NTRY_TO_SYM = { # define constants from an entry to a symbol class
43
+ NTRY_TO_SYM = { # define entry to symbol (key to value)
43
44
  'p' => :PAPER,
44
45
  'r' => :ROCK,
45
46
  's' => :SCISSORS
@@ -143,6 +144,7 @@ class PlayRockPaperScissorsGame # define master class
143
144
  def final_outcome(pl,co) # define final outcome method
144
145
  return :WIN if pl > co
145
146
  return :LOSE if pl < co
147
+ # there will never be a tie due to the code in the play() method
146
148
  end
147
149
  end
148
150
  end
@@ -103,7 +103,7 @@ __`% ruby advanced-rps.rb`__
103
103
  class PlayRockPaperScissorsGame
104
104
 
105
105
  module RockPaperScissors
106
- VERSION = "2.4.9"
106
+ VERSION = "2.5.0"
107
107
  end
108
108
 
109
109
  # 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=7a7c0ba75204d2d1091e9fc5c384741a227fb161">
10
+ <link rel="stylesheet" href="/assets/css/style.css?v=7c3be96e6ba1598ea5bbd5d9c6566cfe0cc1aaab">
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=7a7c0ba75204d2d1091e9fc5c384741a227fb161">
10
+ <link rel="stylesheet" href="/assets/css/style.css?v=7c3be96e6ba1598ea5bbd5d9c6566cfe0cc1aaab">
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=7a7c0ba75204d2d1091e9fc5c384741a227fb161">
10
+ <link rel="stylesheet" href="/assets/css/style.css?v=7c3be96e6ba1598ea5bbd5d9c6566cfe0cc1aaab">
11
11
  <link rel="stylesheet" href="assets/css/pace.css" />
12
12
  <script src="assets/js/pace.min.js"></script>
13
13
  </head>
@@ -39,7 +39,7 @@
39
39
  <p><strong>The master code will look like this:</strong></p>
40
40
 
41
41
  <blockquote>
42
- <p>Note: the code is an executable and from a RubyGem</p>
42
+ <p>Note: the code is an executable and from my RubyGem</p>
43
43
  </blockquote>
44
44
 
45
45
  <p><strong><code class="highlighter-rouge">% rps</code></strong></p>
@@ -57,7 +57,7 @@
57
57
  <span class="k">class</span> <span class="nc">PlayRockPaperScissorsGame</span> <span class="c1"># define master class</span>
58
58
 
59
59
  <span class="k">module</span> <span class="nn">RockPaperScissors</span>
60
- <span class="no">VERSION</span> <span class="o">=</span> <span class="s2">"2.4.9"</span> <span class="c1"># define version constant</span>
60
+ <span class="no">VERSION</span> <span class="o">=</span> <span class="s2">"2.5.0"</span> <span class="c1"># define version constant</span>
61
61
  <span class="k">end</span>
62
62
 
63
63
  <span class="c1"># intiate the colorize gem</span>
@@ -66,7 +66,7 @@
66
66
  <span class="no">ColorizedString</span><span class="p">.</span><span class="nf">modes</span> <span class="c1"># import modes; ex: bold, italic, underline</span>
67
67
 
68
68
  <span class="k">module</span> <span class="nn">Constants</span>
69
- <span class="no">NTRY_TO_SYM</span> <span class="o">=</span> <span class="p">{</span> <span class="c1"># define constants from an entry to a symbol class</span>
69
+ <span class="no">NTRY_TO_SYM</span> <span class="o">=</span> <span class="p">{</span> <span class="c1"># define entry to symbol (key to value)</span>
70
70
  <span class="s1">'p'</span> <span class="o">=&gt;</span> <span class="ss">:PAPER</span><span class="p">,</span>
71
71
  <span class="s1">'r'</span> <span class="o">=&gt;</span> <span class="ss">:ROCK</span><span class="p">,</span>
72
72
  <span class="s1">'s'</span> <span class="o">=&gt;</span> <span class="ss">:SCISSORS</span>
@@ -170,6 +170,7 @@
170
170
  <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>
171
171
  <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>
172
172
  <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>
173
+ <span class="c1"># there will never be a tie due to the code in the play() method</span>
173
174
  <span class="k">end</span>
174
175
  <span class="k">end</span>
175
176
  <span class="k">end</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=7a7c0ba75204d2d1091e9fc5c384741a227fb161">
10
+ <link rel="stylesheet" href="/assets/css/style.css?v=7c3be96e6ba1598ea5bbd5d9c6566cfe0cc1aaab">
11
11
  <link rel="stylesheet" href="assets/css/pace.css" />
12
12
  <script src="assets/js/pace.min.js"></script>
13
13
  </head>
@@ -138,7 +138,7 @@
138
138
  <div class="language-ruby highlighter-rouge"><pre class="highlight"><code><span class="k">class</span> <span class="nc">PlayRockPaperScissorsGame</span>
139
139
 
140
140
  <span class="k">module</span> <span class="nn">RockPaperScissors</span>
141
- <span class="no">VERSION</span> <span class="o">=</span> <span class="s2">"2.4.9"</span>
141
+ <span class="no">VERSION</span> <span class="o">=</span> <span class="s2">"2.5.0"</span>
142
142
  <span class="k">end</span>
143
143
 
144
144
  <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=7a7c0ba75204d2d1091e9fc5c384741a227fb161">
10
+ <link rel="stylesheet" href="/assets/css/style.css?v=7c3be96e6ba1598ea5bbd5d9c6566cfe0cc1aaab">
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=7a7c0ba75204d2d1091e9fc5c384741a227fb161">
10
+ <link rel="stylesheet" href="/assets/css/style.css?v=7c3be96e6ba1598ea5bbd5d9c6566cfe0cc1aaab">
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=7a7c0ba75204d2d1091e9fc5c384741a227fb161">
10
+ <link rel="stylesheet" href="/assets/css/style.css?v=7c3be96e6ba1598ea5bbd5d9c6566cfe0cc1aaab">
11
11
  <link rel="stylesheet" href="assets/css/pace.css" />
12
12
  <script src="assets/js/pace.min.js"></script>
13
13
  </head>
@@ -1,3 +1,3 @@
1
1
  module RockPaperScissors
2
- VERSION = "2.4.9"
2
+ VERSION = "2.5.0"
3
3
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "PlayRockPaperScissorsGame"
3
- spec.version = "2.4.9"
3
+ spec.version = "2.5.0"
4
4
  spec.date = "2017-04-08"
5
5
  spec.summary = "A Rock Paper Scissors Ruby Gem"
6
6
  spec.description = <<-EOF
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.9
4
+ version: 2.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - bag3318
metadata.gz.sig CHANGED
Binary file