PlayRockPaperScissorsGame 2.5.5 → 2.5.6
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 +2 -2
- data/docs/Comparing_Code.md +3 -15
- data/docs/_site/CODE_OF_CONDUCT.html +1 -1
- data/docs/_site/CONTRIBUTING.html +1 -1
- data/docs/_site/Code.html +3 -3
- data/docs/_site/Comparing_Code.html +4 -4
- data/docs/_site/How_to_Build.html +1 -1
- data/docs/_site/Testing.html +1 -1
- data/docs/_site/index.html +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: 9f31b25e9958dbb5677c13a469a4e57544493d06
|
4
|
+
data.tar.gz: 53a58673ae8c0ad311d0a8826fc8ea8e5ecc91e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '090eb4b09adbefa6452ee71a08bc354cd893ed3ec486e9c73f538a77a5292074d36d8174997c2daa102478deaa4d6506b02676536e7ea08051493b66478a8308'
|
7
|
+
data.tar.gz: ff8d8a4f41382cc2f055304455d4c41ecbf92bed27f584cb7c6000366969ecb61c1c2f0c2f09ec973ed9aae4973c455569ffce16c9963d92bb4cb3711ec39bba
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/docs/Code.md
CHANGED
@@ -14,7 +14,7 @@ Master Code
|
|
14
14
|
[//]: # (`$ rps`)
|
15
15
|
[//]: # (`> rps`)
|
16
16
|
|
17
|
-
|
17
|
+
`% rps`
|
18
18
|
|
19
19
|
```ruby
|
20
20
|
#!/usr/bin/env ruby
|
@@ -30,7 +30,7 @@ __`% rps`__
|
|
30
30
|
class PlayRockPaperScissorsGame
|
31
31
|
|
32
32
|
module RockPaperScissors
|
33
|
-
VERSION = "2.5.
|
33
|
+
VERSION = "2.5.6"
|
34
34
|
end
|
35
35
|
|
36
36
|
# call the colorize gem
|
data/docs/Comparing_Code.md
CHANGED
@@ -35,11 +35,8 @@ permalink: /Comparing_Code.html
|
|
35
35
|
|
36
36
|
### What Beginner's Code Looks Like
|
37
37
|
|
38
|
-
|
38
|
+
`% ruby beginner-rps.rb`
|
39
39
|
|
40
|
-
[//]: # (end markdown)
|
41
|
-
|
42
|
-
[//]: # (start ruby)
|
43
40
|
```ruby
|
44
41
|
options = ["rock", "paper", "scissors"]
|
45
42
|
computer_choice = options[rand(options.length)]
|
@@ -71,9 +68,6 @@ loop do
|
|
71
68
|
break
|
72
69
|
end
|
73
70
|
```
|
74
|
-
[//]: # (end ruby)
|
75
|
-
|
76
|
-
[//]: # (start markdown)
|
77
71
|
|
78
72
|
## Advanced Code
|
79
73
|
|
@@ -90,16 +84,13 @@ end
|
|
90
84
|
|
91
85
|
### What Advanced Code Looks Like
|
92
86
|
|
93
|
-
|
87
|
+
`% ruby advanced-rps.rb`
|
94
88
|
|
95
|
-
[//]: # (end markdown)
|
96
|
-
|
97
|
-
[//]: # (start ruby)
|
98
89
|
```ruby
|
99
90
|
class PlayRockPaperScissorsGame
|
100
91
|
|
101
92
|
module RockPaperScissors
|
102
|
-
VERSION = "2.5.
|
93
|
+
VERSION = "2.5.6"
|
103
94
|
end
|
104
95
|
|
105
96
|
# import colorize gem
|
@@ -211,9 +202,6 @@ end
|
|
211
202
|
|
212
203
|
PlayRockPaperScissorsGame.new.play(2)
|
213
204
|
```
|
214
|
-
[//]: # (end ruby)
|
215
|
-
|
216
|
-
[//]: # (start markdown)
|
217
205
|
|
218
206
|
______________
|
219
207
|
|
@@ -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=4196a2f8e6ca8d2d6563f653da136eec9e325bd9">
|
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=4196a2f8e6ca8d2d6563f653da136eec9e325bd9">
|
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=4196a2f8e6ca8d2d6563f653da136eec9e325bd9">
|
11
11
|
<link rel="stylesheet" href="assets/css/pace.css" />
|
12
12
|
<script src="assets/js/pace.min.js"></script>
|
13
13
|
</head>
|
@@ -43,7 +43,7 @@
|
|
43
43
|
<p>Note: the code is an executable and from my <a href="https://rubygems.org/gems/PlayRockPaperScissorsGame">RubyGem</a></p>
|
44
44
|
</blockquote>
|
45
45
|
|
46
|
-
<p><
|
46
|
+
<p><code class="highlighter-rouge">% rps</code></p>
|
47
47
|
|
48
48
|
<div class="language-ruby highlighter-rouge"><pre class="highlight"><code><span class="c1">#!/usr/bin/env ruby</span>
|
49
49
|
|
@@ -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.6"</span>
|
62
62
|
<span class="k">end</span>
|
63
63
|
|
64
64
|
<span class="c1"># call the 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=4196a2f8e6ca8d2d6563f653da136eec9e325bd9">
|
11
11
|
<link rel="stylesheet" href="assets/css/pace.css" />
|
12
12
|
<script src="assets/js/pace.min.js"></script>
|
13
13
|
</head>
|
@@ -81,7 +81,7 @@
|
|
81
81
|
|
82
82
|
<h3 id="what-beginners-code-looks-like">What Beginner’s Code Looks Like</h3>
|
83
83
|
|
84
|
-
<p><
|
84
|
+
<p><code class="highlighter-rouge">% ruby beginner-rps.rb</code></p>
|
85
85
|
|
86
86
|
<div class="language-ruby highlighter-rouge"><pre class="highlight"><code><span class="n">options</span> <span class="o">=</span> <span class="p">[</span><span class="s2">"rock"</span><span class="p">,</span> <span class="s2">"paper"</span><span class="p">,</span> <span class="s2">"scissors"</span><span class="p">]</span>
|
87
87
|
<span class="n">computer_choice</span> <span class="o">=</span> <span class="n">options</span><span class="p">[</span><span class="nb">rand</span><span class="p">(</span><span class="n">options</span><span class="p">.</span><span class="nf">length</span><span class="p">)]</span>
|
@@ -134,12 +134,12 @@
|
|
134
134
|
|
135
135
|
<h3 id="what-advanced-code-looks-like">What Advanced Code Looks Like</h3>
|
136
136
|
|
137
|
-
<p><
|
137
|
+
<p><code class="highlighter-rouge">% ruby advanced-rps.rb</code></p>
|
138
138
|
|
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.6"</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=4196a2f8e6ca8d2d6563f653da136eec9e325bd9">
|
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=4196a2f8e6ca8d2d6563f653da136eec9e325bd9">
|
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=4196a2f8e6ca8d2d6563f653da136eec9e325bd9">
|
11
11
|
<link rel="stylesheet" href="assets/css/pace.css" />
|
12
12
|
<script src="assets/js/pace.min.js"></script>
|
13
13
|
</head>
|
data/rps.gemspec
CHANGED
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|