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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/docs/Code.md +5 -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 +5 -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
- 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: ef1ec64e00d6729ef61ce31b6e866363e72cae31
|
4
|
+
data.tar.gz: 4af1bd01f2bea29390f4093b2ef059911ca34767
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7baa8633e037d7b4a05ab867e002142d60fb7ffb863a634d292f1a82ed4a777dedfa0819035bda93f40f672c3edf7d9f0b7a75a530f26408b0eb8c9c35a76f52
|
7
|
+
data.tar.gz: aa0b6fe79d61e86f744f80e9dab95538cace9865cabe9ad2546a61463d3fba0d9bf480c38a8da9ab00bf116fe52f592ad436721e562d36678f5c545e0c7e4c9f
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/docs/Code.md
CHANGED
@@ -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
|
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.
|
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
|
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
|
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=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=
|
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>
|
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=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
|
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.
|
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
|
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">=></span> <span class="ss">:PAPER</span><span class="p">,</span>
|
71
71
|
<span class="s1">'r'</span> <span class="o">=></span> <span class="ss">:ROCK</span><span class="p">,</span>
|
72
72
|
<span class="s1">'s'</span> <span class="o">=></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">></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"><</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=
|
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.
|
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=
|
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>
|
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=7c3be96e6ba1598ea5bbd5d9c6566cfe0cc1aaab">
|
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=7c3be96e6ba1598ea5bbd5d9c6566cfe0cc1aaab">
|
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
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|