PlayRockPaperScissorsGame 2.6.0 → 2.6.1
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/.gitignore +1 -0
- data/docs/Code.md +14 -12
- data/docs/Comparing_Code.md +9 -14
- data/docs/How_to_Build.md +0 -6
- data/docs/Testing.md +0 -5
- data/docs/_config.yml +2 -1
- data/docs/_layouts/default.html +12 -0
- data/docs/_site/Code.html +25 -21
- data/docs/_site/Comparing_Code.html +22 -24
- data/docs/_site/How_to_Build.html +13 -16
- data/docs/_site/Testing.html +13 -15
- data/docs/_site/about.html +16 -17
- data/docs/_site/assets/js/scrolling_title.js +0 -0
- data/docs/_site/index.html +13 -17
- data/docs/about.md +3 -6
- data/docs/assets/js/scrolling_title.js +0 -0
- data/docs/index.md +0 -7
- data/lib/rps/version.rb +1 -1
- data/rps.gemspec +2 -2
- metadata +4 -6
- metadata.gz.sig +0 -0
- data/docs/CODE_OF_CONDUCT.md +0 -85
- data/docs/CONTRIBUTING.md +0 -44
- data/docs/_site/CODE_OF_CONDUCT.html +0 -141
- data/docs/_site/CONTRIBUTING.html +0 -100
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d09fc6d84c5a6c4cc531edfd5deeaa0d6f0f741f
|
4
|
+
data.tar.gz: cc73c6aae8dc44e0edb5590f8cf2273b66639b35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad810af8c356c249f46ff69fb38646947ba2cf6e21ac2c6a3102e182d832da664f2b514585d1e619f4561e5eaaaf680c8abc4af8a1a7416ee7cae399a2bdb116
|
7
|
+
data.tar.gz: d5d52e7a38e1dfe8835dd3dd602abc4a61800618f6287455bfae4ac99ef5e4da3004338e2c357fec7cd32eb27882e4c6c1e9e30fadf13693e816ba4e3045a2bc
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/.gitignore
CHANGED
data/docs/Code.md
CHANGED
@@ -16,6 +16,13 @@ Master Code
|
|
16
16
|
|
17
17
|
`% rps`
|
18
18
|
|
19
|
+
<!--
|
20
|
+
```
|
21
|
+
% rps
|
22
|
+
```
|
23
|
+
-->
|
24
|
+
|
25
|
+
[//]: # "start ruby"
|
19
26
|
```ruby
|
20
27
|
#!/usr/bin/env ruby
|
21
28
|
|
@@ -30,7 +37,7 @@ Master Code
|
|
30
37
|
class PlayRockPaperScissorsGame
|
31
38
|
|
32
39
|
module RockPaperScissors
|
33
|
-
VERSION = "2.6.
|
40
|
+
VERSION = "2.6.1"
|
34
41
|
end
|
35
42
|
|
36
43
|
# import the colorize gem
|
@@ -40,16 +47,16 @@ class PlayRockPaperScissorsGame
|
|
40
47
|
|
41
48
|
module Constants
|
42
49
|
NTRY_TO_SYM = { # define entry to symbol (key to value)
|
43
|
-
'p' => :PAPER,
|
44
|
-
'r' => :ROCK,
|
50
|
+
'p' => :PAPER ,
|
51
|
+
'r' => :ROCK ,
|
45
52
|
's' => :SCISSORS
|
46
53
|
}
|
47
|
-
VALID_ENTRIES
|
54
|
+
VALID_ENTRIES = NTRY_TO_SYM.keys
|
48
55
|
COMPUTER_CHOICES = NTRY_TO_SYM.values
|
49
56
|
WINNERS = [
|
50
57
|
# format: player choice, computer choice
|
51
|
-
[:SCISSORS, :PAPER],
|
52
|
-
[:PAPER , :ROCK],
|
58
|
+
[:SCISSORS, :PAPER ],
|
59
|
+
[:PAPER , :ROCK ],
|
53
60
|
[:ROCK , :SCISSORS]
|
54
61
|
]
|
55
62
|
LOSERS = WINNERS.map { |player_choice,computer_choice| [computer_choice,player_choice] } # this will take the original WINNERS array and flip the symbols, thus returning a loss for the user/player
|
@@ -145,10 +152,5 @@ end
|
|
145
152
|
|
146
153
|
PlayRockPaperScissorsGame.new.play(2) # call the play method and pass in 3 (0, 1, 2) for the winning score
|
147
154
|
```
|
155
|
+
[//]: # "end ruby"
|
148
156
|
|
149
|
-
______________
|
150
|
-
|
151
|
-
Site Nav
|
152
|
-
--------
|
153
|
-
|
154
|
-
[Home](./) | [Comparing Code](Comparing_Code) | [How to Test](Testing) | [How to Build](How_to_Build)
|
data/docs/Comparing_Code.md
CHANGED
@@ -17,7 +17,6 @@ permalink: /Comparing_Code.html
|
|
17
17
|
- [Advanced Code Pros](#advanced-code-pros)
|
18
18
|
- [Advanced Code Cons](#advanced-code-cons)
|
19
19
|
- [What Advanced Code Looks Like](#what-advanced-code-looks-like)
|
20
|
-
- [Site Nav](#site-nav)
|
21
20
|
|
22
21
|
## Beginner's Code
|
23
22
|
|
@@ -90,7 +89,7 @@ end
|
|
90
89
|
class PlayRockPaperScissorsGame
|
91
90
|
|
92
91
|
module RockPaperScissors
|
93
|
-
VERSION = "2.6.
|
92
|
+
VERSION = "2.6.1"
|
94
93
|
end
|
95
94
|
|
96
95
|
# import colorize gem
|
@@ -99,16 +98,17 @@ class PlayRockPaperScissorsGame
|
|
99
98
|
ColorizedString.modes # import modes (bold, italic, etc...)
|
100
99
|
|
101
100
|
module Constants
|
102
|
-
NTRY_TO_SYM = {
|
103
|
-
'p' => :PAPER,
|
104
|
-
'r' => :ROCK,
|
101
|
+
NTRY_TO_SYM = { # define entry to symbol (key to value)
|
102
|
+
'p' => :PAPER ,
|
103
|
+
'r' => :ROCK ,
|
105
104
|
's' => :SCISSORS
|
106
105
|
}
|
107
|
-
VALID_ENTRIES
|
108
|
-
COMPUTER_CHOICES = NTRY_TO_SYM.values
|
106
|
+
VALID_ENTRIES = NTRY_TO_SYM.keys
|
107
|
+
COMPUTER_CHOICES = NTRY_TO_SYM.values
|
109
108
|
WINNERS = [
|
110
|
-
|
111
|
-
[:
|
109
|
+
# format: player choice, computer choice
|
110
|
+
[:SCISSORS, :PAPER ],
|
111
|
+
[:PAPER , :ROCK ],
|
112
112
|
[:ROCK , :SCISSORS]
|
113
113
|
]
|
114
114
|
LOSERS = WINNERS.map { |player_choice,computer_choice| [computer_choice,player_choice] } # flip the values in the WINNERS array, returning a loss
|
@@ -203,8 +203,3 @@ end
|
|
203
203
|
PlayRockPaperScissorsGame.new.play(2)
|
204
204
|
```
|
205
205
|
|
206
|
-
______________
|
207
|
-
|
208
|
-
## Site Nav
|
209
|
-
|
210
|
-
[Home](./) | [Master Code](Code) | [How to Test](Testing) | [How to Build](How_to_Build)
|
data/docs/How_to_Build.md
CHANGED
@@ -20,9 +20,3 @@ title: How to Build - Play Rock Paper Scissors Game
|
|
20
20
|
5. `cd` to the directory of the `rps.gemspec` file (**note: this file must be in the _root_ of the repo folder**)
|
21
21
|
6. Type: `gem build rps`
|
22
22
|
7. Hit <kbd>return</kbd>/<kbd>enter</kbd>
|
23
|
-
|
24
|
-
______________
|
25
|
-
|
26
|
-
## Site Nav
|
27
|
-
|
28
|
-
[Home](./) | [Comparing Code](Comparing_Code) | [How to Test](Testing) | [Master Code](Code)
|
data/docs/Testing.md
CHANGED
@@ -18,8 +18,3 @@ What you will need
|
|
18
18
|
1. Open `Terminal`/`Command Prompt` and `cd` to the directory of the repo's folder
|
19
19
|
2. Type: `rake test` and hit <kbd>enter</kbd>/<kbd>return</kbd>
|
20
20
|
|
21
|
-
______________
|
22
|
-
|
23
|
-
## Site Nav
|
24
|
-
|
25
|
-
[Home](./) | [Comparing Code](Comparing_Code) | [How to Build](How_to_Build) | [Master Code](Code)
|
data/docs/_config.yml
CHANGED
data/docs/_layouts/default.html
CHANGED
@@ -39,6 +39,18 @@
|
|
39
39
|
{% comment %}create footer{% endcomment %}
|
40
40
|
<footer class="site-footer">
|
41
41
|
{% if site.github.is_project_page %}
|
42
|
+
<h2 id="site-nav">Site Nav</h2>
|
43
|
+
<table>
|
44
|
+
<tr>
|
45
|
+
<td><a href="{{ domain }}">Home</a>
|
46
|
+
<td><a href="{{ domain }}Testing">How to Test</a></td>
|
47
|
+
<td><a href="{{ domain }}Comparing_Code">Comparing Code</a></td>
|
48
|
+
<td><a href="{{ domain }}Code">Master Code</a></td>
|
49
|
+
<td><a href="{{ domain }}How_to_Build">How to Build</a></td>
|
50
|
+
<td><a href="{{ domain }}about">About</a></td>
|
51
|
+
</tr>
|
52
|
+
</table>
|
53
|
+
<br/>
|
42
54
|
<span class="site-footer-owner"><a href="{{ site.github.repository_url }}">{{ site.github.repository_name }}</a> is maintained by <a href="{{ site.github.owner_url }}">{{ site.github.owner_name }}</a>.</span>
|
43
55
|
{% endif %}
|
44
56
|
</footer>
|
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=33b456d1e038e9f2d820f45594e51f7d7ca5d6f0">
|
11
11
|
<link rel="stylesheet" href="assets/css/pace.css" />
|
12
12
|
<script src="assets/js/pace.min.js"></script>
|
13
13
|
</head>
|
@@ -45,6 +45,12 @@
|
|
45
45
|
|
46
46
|
<p><code class="highlighter-rouge">% rps</code></p>
|
47
47
|
|
48
|
+
<!--
|
49
|
+
```
|
50
|
+
% rps
|
51
|
+
```
|
52
|
+
-->
|
53
|
+
|
48
54
|
<div class="language-ruby highlighter-rouge"><pre class="highlight"><code><span class="c1">#!/usr/bin/env ruby</span>
|
49
55
|
|
50
56
|
<span class="cm">=begin
|
@@ -58,7 +64,7 @@
|
|
58
64
|
<span class="k">class</span> <span class="nc">PlayRockPaperScissorsGame</span>
|
59
65
|
|
60
66
|
<span class="k">module</span> <span class="nn">RockPaperScissors</span>
|
61
|
-
<span class="no">VERSION</span> <span class="o">=</span> <span class="s2">"2.6.
|
67
|
+
<span class="no">VERSION</span> <span class="o">=</span> <span class="s2">"2.6.1"</span>
|
62
68
|
<span class="k">end</span>
|
63
69
|
|
64
70
|
<span class="c1"># import the colorize gem</span>
|
@@ -68,16 +74,16 @@
|
|
68
74
|
|
69
75
|
<span class="k">module</span> <span class="nn">Constants</span>
|
70
76
|
<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>
|
71
|
-
<span class="s1">'p'</span> <span class="o">=></span> <span class="ss">:PAPER</span
|
72
|
-
<span class="s1">'r'</span> <span class="o">=></span> <span class="ss">:ROCK</span
|
77
|
+
<span class="s1">'p'</span> <span class="o">=></span> <span class="ss">:PAPER</span> <span class="p">,</span>
|
78
|
+
<span class="s1">'r'</span> <span class="o">=></span> <span class="ss">:ROCK</span> <span class="p">,</span>
|
73
79
|
<span class="s1">'s'</span> <span class="o">=></span> <span class="ss">:SCISSORS</span>
|
74
80
|
<span class="p">}</span>
|
75
|
-
<span class="no">VALID_ENTRIES</span>
|
81
|
+
<span class="no">VALID_ENTRIES</span> <span class="o">=</span> <span class="no">NTRY_TO_SYM</span><span class="p">.</span><span class="nf">keys</span>
|
76
82
|
<span class="no">COMPUTER_CHOICES</span> <span class="o">=</span> <span class="no">NTRY_TO_SYM</span><span class="p">.</span><span class="nf">values</span>
|
77
83
|
<span class="no">WINNERS</span> <span class="o">=</span> <span class="p">[</span>
|
78
84
|
<span class="c1"># format: player choice, computer choice</span>
|
79
|
-
<span class="p">[</span><span class="ss">:SCISSORS</span><span class="p">,</span> <span class="ss">:PAPER</span
|
80
|
-
<span class="p">[</span><span class="ss">:PAPER</span> <span class="p">,</span> <span class="ss">:ROCK</span
|
85
|
+
<span class="p">[</span><span class="ss">:SCISSORS</span><span class="p">,</span> <span class="ss">:PAPER</span> <span class="p">],</span>
|
86
|
+
<span class="p">[</span><span class="ss">:PAPER</span> <span class="p">,</span> <span class="ss">:ROCK</span> <span class="p">],</span>
|
81
87
|
<span class="p">[</span><span class="ss">:ROCK</span> <span class="p">,</span> <span class="ss">:SCISSORS</span><span class="p">]</span>
|
82
88
|
<span class="p">]</span>
|
83
89
|
<span class="no">LOSERS</span> <span class="o">=</span> <span class="no">WINNERS</span><span class="p">.</span><span class="nf">map</span> <span class="p">{</span> <span class="o">|</span><span class="n">player_choice</span><span class="p">,</span><span class="n">computer_choice</span><span class="o">|</span> <span class="p">[</span><span class="n">computer_choice</span><span class="p">,</span><span class="n">player_choice</span><span class="p">]</span> <span class="p">}</span> <span class="c1"># this will take the original WINNERS array and flip the symbols, thus returning a loss for the user/player</span>
|
@@ -175,24 +181,22 @@
|
|
175
181
|
</code></pre>
|
176
182
|
</div>
|
177
183
|
|
178
|
-
<hr />
|
179
|
-
|
180
|
-
<h2 id="site-nav">Site Nav</h2>
|
181
|
-
|
182
|
-
<table>
|
183
|
-
<tbody>
|
184
|
-
<tr>
|
185
|
-
<td><a href="./">Home</a></td>
|
186
|
-
<td><a href="Comparing_Code">Comparing Code</a></td>
|
187
|
-
<td><a href="Testing">How to Test</a></td>
|
188
|
-
<td><a href="How_to_Build">How to Build</a></td>
|
189
|
-
</tr>
|
190
|
-
</tbody>
|
191
|
-
</table>
|
192
184
|
|
193
185
|
|
194
186
|
<footer class="site-footer">
|
195
187
|
|
188
|
+
<h2 id="site-nav">Site Nav</h2>
|
189
|
+
<table>
|
190
|
+
<tr>
|
191
|
+
<td><a href="">Home</a>
|
192
|
+
<td><a href="Testing">How to Test</a></td>
|
193
|
+
<td><a href="Comparing_Code">Comparing Code</a></td>
|
194
|
+
<td><a href="Code">Master Code</a></td>
|
195
|
+
<td><a href="How_to_Build">How to Build</a></td>
|
196
|
+
<td><a href="about">About</a></td>
|
197
|
+
</tr>
|
198
|
+
</table>
|
199
|
+
<br/>
|
196
200
|
<span class="site-footer-owner"><a href="http://github.com/bag3318/RockPaperScissors">RockPaperScissors</a> is maintained by <a href="http://github.com/bag3318">bag3318</a>.</span>
|
197
201
|
|
198
202
|
</footer>
|
@@ -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=33b456d1e038e9f2d820f45594e51f7d7ca5d6f0">
|
11
11
|
<link rel="stylesheet" href="assets/css/pace.css" />
|
12
12
|
<script src="assets/js/pace.min.js"></script>
|
13
13
|
</head>
|
@@ -56,7 +56,6 @@
|
|
56
56
|
<li><a href="#what-advanced-code-looks-like">What Advanced Code Looks Like</a></li>
|
57
57
|
</ul>
|
58
58
|
</li>
|
59
|
-
<li><a href="#site-nav">Site Nav</a></li>
|
60
59
|
</ul>
|
61
60
|
</li>
|
62
61
|
</ul>
|
@@ -139,7 +138,7 @@
|
|
139
138
|
<div class="language-ruby highlighter-rouge"><pre class="highlight"><code><span class="k">class</span> <span class="nc">PlayRockPaperScissorsGame</span>
|
140
139
|
|
141
140
|
<span class="k">module</span> <span class="nn">RockPaperScissors</span>
|
142
|
-
<span class="no">VERSION</span> <span class="o">=</span> <span class="s2">"2.6.
|
141
|
+
<span class="no">VERSION</span> <span class="o">=</span> <span class="s2">"2.6.1"</span>
|
143
142
|
<span class="k">end</span>
|
144
143
|
|
145
144
|
<span class="c1"># import colorize gem</span>
|
@@ -148,16 +147,17 @@
|
|
148
147
|
<span class="no">ColorizedString</span><span class="p">.</span><span class="nf">modes</span> <span class="c1"># import modes (bold, italic, etc...)</span>
|
149
148
|
|
150
149
|
<span class="k">module</span> <span class="nn">Constants</span>
|
151
|
-
<span class="no">NTRY_TO_SYM</span> <span class="o">=</span> <span class="p">{</span>
|
152
|
-
<span class="s1">'p'</span> <span class="o">=></span> <span class="ss">:PAPER</span
|
153
|
-
<span class="s1">'r'</span> <span class="o">=></span> <span class="ss">:ROCK</span
|
150
|
+
<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>
|
151
|
+
<span class="s1">'p'</span> <span class="o">=></span> <span class="ss">:PAPER</span> <span class="p">,</span>
|
152
|
+
<span class="s1">'r'</span> <span class="o">=></span> <span class="ss">:ROCK</span> <span class="p">,</span>
|
154
153
|
<span class="s1">'s'</span> <span class="o">=></span> <span class="ss">:SCISSORS</span>
|
155
154
|
<span class="p">}</span>
|
156
|
-
<span class="no">VALID_ENTRIES</span>
|
157
|
-
<span class="no">COMPUTER_CHOICES</span> <span class="o">=</span> <span class="no">NTRY_TO_SYM</span><span class="p">.</span><span class="nf">values</span>
|
155
|
+
<span class="no">VALID_ENTRIES</span> <span class="o">=</span> <span class="no">NTRY_TO_SYM</span><span class="p">.</span><span class="nf">keys</span>
|
156
|
+
<span class="no">COMPUTER_CHOICES</span> <span class="o">=</span> <span class="no">NTRY_TO_SYM</span><span class="p">.</span><span class="nf">values</span>
|
158
157
|
<span class="no">WINNERS</span> <span class="o">=</span> <span class="p">[</span>
|
159
|
-
<span class="
|
160
|
-
<span class="p">[</span><span class="ss">:
|
158
|
+
<span class="c1"># format: player choice, computer choice</span>
|
159
|
+
<span class="p">[</span><span class="ss">:SCISSORS</span><span class="p">,</span> <span class="ss">:PAPER</span> <span class="p">],</span>
|
160
|
+
<span class="p">[</span><span class="ss">:PAPER</span> <span class="p">,</span> <span class="ss">:ROCK</span> <span class="p">],</span>
|
161
161
|
<span class="p">[</span><span class="ss">:ROCK</span> <span class="p">,</span> <span class="ss">:SCISSORS</span><span class="p">]</span>
|
162
162
|
<span class="p">]</span>
|
163
163
|
<span class="no">LOSERS</span> <span class="o">=</span> <span class="no">WINNERS</span><span class="p">.</span><span class="nf">map</span> <span class="p">{</span> <span class="o">|</span><span class="n">player_choice</span><span class="p">,</span><span class="n">computer_choice</span><span class="o">|</span> <span class="p">[</span><span class="n">computer_choice</span><span class="p">,</span><span class="n">player_choice</span><span class="p">]</span> <span class="p">}</span> <span class="c1"># flip the values in the WINNERS array, returning a loss</span>
|
@@ -253,24 +253,22 @@
|
|
253
253
|
</code></pre>
|
254
254
|
</div>
|
255
255
|
|
256
|
-
<hr />
|
257
|
-
|
258
|
-
<h2 id="site-nav">Site Nav</h2>
|
259
|
-
|
260
|
-
<table>
|
261
|
-
<tbody>
|
262
|
-
<tr>
|
263
|
-
<td><a href="./">Home</a></td>
|
264
|
-
<td><a href="Code">Master Code</a></td>
|
265
|
-
<td><a href="Testing">How to Test</a></td>
|
266
|
-
<td><a href="How_to_Build">How to Build</a></td>
|
267
|
-
</tr>
|
268
|
-
</tbody>
|
269
|
-
</table>
|
270
256
|
|
271
257
|
|
272
258
|
<footer class="site-footer">
|
273
259
|
|
260
|
+
<h2 id="site-nav">Site Nav</h2>
|
261
|
+
<table>
|
262
|
+
<tr>
|
263
|
+
<td><a href="">Home</a>
|
264
|
+
<td><a href="Testing">How to Test</a></td>
|
265
|
+
<td><a href="Comparing_Code">Comparing Code</a></td>
|
266
|
+
<td><a href="Code">Master Code</a></td>
|
267
|
+
<td><a href="How_to_Build">How to Build</a></td>
|
268
|
+
<td><a href="about">About</a></td>
|
269
|
+
</tr>
|
270
|
+
</table>
|
271
|
+
<br/>
|
274
272
|
<span class="site-footer-owner"><a href="http://github.com/bag3318/RockPaperScissors">RockPaperScissors</a> is maintained by <a href="http://github.com/bag3318">bag3318</a>.</span>
|
275
273
|
|
276
274
|
</footer>
|
@@ -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=33b456d1e038e9f2d820f45594e51f7d7ca5d6f0">
|
11
11
|
<link rel="stylesheet" href="assets/css/pace.css" />
|
12
12
|
<script src="assets/js/pace.min.js"></script>
|
13
13
|
</head>
|
@@ -60,24 +60,21 @@
|
|
60
60
|
<li>Hit <kbd>return</kbd>/<kbd>enter</kbd></li>
|
61
61
|
</ol>
|
62
62
|
|
63
|
-
<hr />
|
64
|
-
|
65
|
-
<h2 id="site-nav">Site Nav</h2>
|
66
|
-
|
67
|
-
<table>
|
68
|
-
<tbody>
|
69
|
-
<tr>
|
70
|
-
<td><a href="./">Home</a></td>
|
71
|
-
<td><a href="Comparing_Code">Comparing Code</a></td>
|
72
|
-
<td><a href="Testing">How to Test</a></td>
|
73
|
-
<td><a href="Code">Master Code</a></td>
|
74
|
-
</tr>
|
75
|
-
</tbody>
|
76
|
-
</table>
|
77
|
-
|
78
63
|
|
79
64
|
<footer class="site-footer">
|
80
65
|
|
66
|
+
<h2 id="site-nav">Site Nav</h2>
|
67
|
+
<table>
|
68
|
+
<tr>
|
69
|
+
<td><a href="">Home</a>
|
70
|
+
<td><a href="Testing">How to Test</a></td>
|
71
|
+
<td><a href="Comparing_Code">Comparing Code</a></td>
|
72
|
+
<td><a href="Code">Master Code</a></td>
|
73
|
+
<td><a href="How_to_Build">How to Build</a></td>
|
74
|
+
<td><a href="about">About</a></td>
|
75
|
+
</tr>
|
76
|
+
</table>
|
77
|
+
<br/>
|
81
78
|
<span class="site-footer-owner"><a href="http://github.com/bag3318/RockPaperScissors">RockPaperScissors</a> is maintained by <a href="http://github.com/bag3318">bag3318</a>.</span>
|
82
79
|
|
83
80
|
</footer>
|
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=33b456d1e038e9f2d820f45594e51f7d7ca5d6f0">
|
11
11
|
<link rel="stylesheet" href="assets/css/pace.css" />
|
12
12
|
<script src="assets/js/pace.min.js"></script>
|
13
13
|
</head>
|
@@ -52,24 +52,22 @@
|
|
52
52
|
<li>Type: <code class="highlighter-rouge">rake test</code> and hit <kbd>enter</kbd>/<kbd>return</kbd></li>
|
53
53
|
</ol>
|
54
54
|
|
55
|
-
<hr />
|
56
|
-
|
57
|
-
<h2 id="site-nav">Site Nav</h2>
|
58
|
-
|
59
|
-
<table>
|
60
|
-
<tbody>
|
61
|
-
<tr>
|
62
|
-
<td><a href="./">Home</a></td>
|
63
|
-
<td><a href="Comparing_Code">Comparing Code</a></td>
|
64
|
-
<td><a href="How_to_Build">How to Build</a></td>
|
65
|
-
<td><a href="Code">Master Code</a></td>
|
66
|
-
</tr>
|
67
|
-
</tbody>
|
68
|
-
</table>
|
69
55
|
|
70
56
|
|
71
57
|
<footer class="site-footer">
|
72
58
|
|
59
|
+
<h2 id="site-nav">Site Nav</h2>
|
60
|
+
<table>
|
61
|
+
<tr>
|
62
|
+
<td><a href="">Home</a>
|
63
|
+
<td><a href="Testing">How to Test</a></td>
|
64
|
+
<td><a href="Comparing_Code">Comparing Code</a></td>
|
65
|
+
<td><a href="Code">Master Code</a></td>
|
66
|
+
<td><a href="How_to_Build">How to Build</a></td>
|
67
|
+
<td><a href="about">About</a></td>
|
68
|
+
</tr>
|
69
|
+
</table>
|
70
|
+
<br/>
|
73
71
|
<span class="site-footer-owner"><a href="http://github.com/bag3318/RockPaperScissors">RockPaperScissors</a> is maintained by <a href="http://github.com/bag3318">bag3318</a>.</span>
|
74
72
|
|
75
73
|
</footer>
|
data/docs/_site/about.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=33b456d1e038e9f2d820f45594e51f7d7ca5d6f0">
|
11
11
|
<link rel="stylesheet" href="assets/css/pace.css" />
|
12
12
|
<script src="assets/js/pace.min.js"></script>
|
13
13
|
</head>
|
@@ -42,7 +42,7 @@ I have decided to code a Ruby-programmed RPS game that uses full CLI<sup>2</sup>
|
|
42
42
|
|
43
43
|
<h2 id="why-use-ruby">Why use Ruby?</h2>
|
44
44
|
|
45
|
-
<p>Ruby is a programming language that has been around for a little over 2 decades. The gem-attributed language was primarily developed by <em>Yukihiro “Matz” Matsumoto</em> in Japan. Ruby stood out to me because of it’s unique code structure design. I decided to use Ruby becuase I wanted to learn an <strong>object oriented programming language</strong>. Ruby appealed to me by its unique code structure.</p>
|
45
|
+
<p>Ruby is a programming language that has been around for a little over 2 decades. The gem-attributed language was primarily developed by <em>Yukihiro “Matz” Matsumoto</em> in Japan. Ruby stood out to me because of it’s unique code structure design. I decided to use Ruby becuase I wanted to learn an <strong>object oriented programming language<sup>3</sup></strong>. Ruby appealed to me by its unique code structure.</p>
|
46
46
|
|
47
47
|
<h2 id="the-code">The Code</h2>
|
48
48
|
|
@@ -54,28 +54,27 @@ I have decided to code a Ruby-programmed RPS game that uses full CLI<sup>2</sup>
|
|
54
54
|
<p><strong>1.</strong> RPS = rock-paper-scissors</p>
|
55
55
|
|
56
56
|
<p><strong>2.</strong> CLI means that it is executed in a command line app, such as CMD (command prompt) for Windows, or Terminal for Mac.</p>
|
57
|
+
|
58
|
+
<p><strong>3.</strong> Object Oriented languages like Ruby, C#, etc…, follow a similar syntax format.</p>
|
57
59
|
</blockquote>
|
58
60
|
|
59
61
|
<hr />
|
60
62
|
|
61
|
-
<h2 id="site-nav">Site Nav</h2>
|
62
|
-
|
63
|
-
<table>
|
64
|
-
<tbody>
|
65
|
-
<tr>
|
66
|
-
<td><a href="./">Home</a></td>
|
67
|
-
<td><a href="Testing">How to Test</a></td>
|
68
|
-
<td><a href="Comparing_Code">Comparing Code</a></td>
|
69
|
-
<td><a href="How_to_Build">How to Build</a></td>
|
70
|
-
<td><a href="Code">Master Code</a></td>
|
71
|
-
</tr>
|
72
|
-
</tbody>
|
73
|
-
</table>
|
74
|
-
|
75
|
-
|
76
63
|
|
77
64
|
<footer class="site-footer">
|
78
65
|
|
66
|
+
<h2 id="site-nav">Site Nav</h2>
|
67
|
+
<table>
|
68
|
+
<tr>
|
69
|
+
<td><a href="">Home</a>
|
70
|
+
<td><a href="Testing">How to Test</a></td>
|
71
|
+
<td><a href="Comparing_Code">Comparing Code</a></td>
|
72
|
+
<td><a href="Code">Master Code</a></td>
|
73
|
+
<td><a href="How_to_Build">How to Build</a></td>
|
74
|
+
<td><a href="about">About</a></td>
|
75
|
+
</tr>
|
76
|
+
</table>
|
77
|
+
<br/>
|
79
78
|
<span class="site-footer-owner"><a href="http://github.com/bag3318/RockPaperScissors">RockPaperScissors</a> is maintained by <a href="http://github.com/bag3318">bag3318</a>.</span>
|
80
79
|
|
81
80
|
</footer>
|
File without changes
|
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=33b456d1e038e9f2d820f45594e51f7d7ca5d6f0">
|
11
11
|
<link rel="stylesheet" href="assets/css/pace.css" />
|
12
12
|
<script src="assets/js/pace.min.js"></script>
|
13
13
|
</head>
|
@@ -57,7 +57,6 @@
|
|
57
57
|
</ul>
|
58
58
|
</li>
|
59
59
|
<li><a href="#links">Links</a></li>
|
60
|
-
<li><a href="#site-nav">Site Nav</a></li>
|
61
60
|
</ul>
|
62
61
|
</li>
|
63
62
|
</ul>
|
@@ -109,25 +108,22 @@
|
|
109
108
|
<li><a href="https://github.com/bag3318/RockPaperScissors">Source Code</a></li>
|
110
109
|
</ul>
|
111
110
|
|
112
|
-
<hr />
|
113
|
-
|
114
|
-
<h2 id="site-nav">Site Nav</h2>
|
115
|
-
|
116
|
-
<table>
|
117
|
-
<tbody>
|
118
|
-
<tr>
|
119
|
-
<td><a href="Testing">How to Test</a></td>
|
120
|
-
<td><a href="Comparing_Code">Comparing Code</a></td>
|
121
|
-
<td><a href="How_to_Build">How to Build</a></td>
|
122
|
-
<td><a href="Code">Master Code</a></td>
|
123
|
-
</tr>
|
124
|
-
</tbody>
|
125
|
-
</table>
|
126
|
-
|
127
111
|
|
128
112
|
|
129
113
|
<footer class="site-footer">
|
130
114
|
|
115
|
+
<h2 id="site-nav">Site Nav</h2>
|
116
|
+
<table>
|
117
|
+
<tr>
|
118
|
+
<td><a href="">Home</a>
|
119
|
+
<td><a href="Testing">How to Test</a></td>
|
120
|
+
<td><a href="Comparing_Code">Comparing Code</a></td>
|
121
|
+
<td><a href="Code">Master Code</a></td>
|
122
|
+
<td><a href="How_to_Build">How to Build</a></td>
|
123
|
+
<td><a href="about">About</a></td>
|
124
|
+
</tr>
|
125
|
+
</table>
|
126
|
+
<br/>
|
131
127
|
<span class="site-footer-owner"><a href="http://github.com/bag3318/RockPaperScissors">RockPaperScissors</a> is maintained by <a href="http://github.com/bag3318">bag3318</a>.</span>
|
132
128
|
|
133
129
|
</footer>
|
data/docs/about.md
CHANGED
@@ -11,7 +11,7 @@ I have decided to code a Ruby-programmed RPS game that uses full CLI<sup>2</sup>
|
|
11
11
|
|
12
12
|
## Why use Ruby?
|
13
13
|
|
14
|
-
Ruby is a programming language that has been around for a little over 2 decades. The gem-attributed language was primarily developed by *Yukihiro "Matz" Matsumoto* in Japan. Ruby stood out to me because of it's unique code structure design. I decided to use Ruby becuase I wanted to learn an **object oriented programming language
|
14
|
+
Ruby is a programming language that has been around for a little over 2 decades. The gem-attributed language was primarily developed by *Yukihiro "Matz" Matsumoto* in Japan. Ruby stood out to me because of it's unique code structure design. I decided to use Ruby becuase I wanted to learn an **object oriented programming language<sup>3</sup>**. Ruby appealed to me by its unique code structure.
|
15
15
|
|
16
16
|
## The Code
|
17
17
|
|
@@ -22,10 +22,7 @@ ________
|
|
22
22
|
> **1.** RPS = rock-paper-scissors
|
23
23
|
>
|
24
24
|
> **2.** CLI means that it is executed in a command line app, such as CMD (command prompt) for Windows, or Terminal for Mac.
|
25
|
+
>
|
26
|
+
> **3.** Object Oriented languages like Ruby, C#, etc..., follow a similar syntax format.
|
25
27
|
|
26
28
|
________
|
27
|
-
|
28
|
-
## Site Nav
|
29
|
-
|
30
|
-
[Home](./) | [How to Test](Testing) | [Comparing Code](Comparing_Code) | [How to Build](How_to_Build) | [Master Code](Code)
|
31
|
-
|
File without changes
|
data/docs/index.md
CHANGED
@@ -18,7 +18,6 @@ Rock Paper Scissors
|
|
18
18
|
- [Install and Run on Windows](#install-and-run-on-windows)
|
19
19
|
- [Running](#running-1)
|
20
20
|
- [Links](#links)
|
21
|
-
- [Site Nav](#site-nav)
|
22
21
|
|
23
22
|
How to Run and Install
|
24
23
|
----------------------
|
@@ -53,10 +52,4 @@ How to Run and Install
|
|
53
52
|
+ [Ruby Gems Page](https://rubygems.org/gems/PlayRockPaperScissorsGame)
|
54
53
|
- [Source Code](https://github.com/bag3318/RockPaperScissors)
|
55
54
|
|
56
|
-
______________
|
57
|
-
|
58
|
-
## Site Nav
|
59
|
-
|
60
|
-
[How to Test](Testing) | [Comparing Code](Comparing_Code) | [How to Build](How_to_Build) | [Master Code](Code)
|
61
|
-
|
62
55
|
[//]: # (end)
|
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.6.
|
4
|
-
spec.date = "2017-05-
|
3
|
+
spec.version = "2.6.1"
|
4
|
+
spec.date = "2017-05-05"
|
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.6.
|
4
|
+
version: 2.6.1
|
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-05 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: bundler
|
@@ -121,8 +121,6 @@ files:
|
|
121
121
|
- bin/PlayRockPaperScissorsGame
|
122
122
|
- bin/rps
|
123
123
|
- certs/gem-public_cert.pem
|
124
|
-
- docs/CODE_OF_CONDUCT.md
|
125
|
-
- docs/CONTRIBUTING.md
|
126
124
|
- docs/Code.md
|
127
125
|
- docs/Comparing_Code.md
|
128
126
|
- docs/Gemfile
|
@@ -135,8 +133,6 @@ files:
|
|
135
133
|
- docs/_sass/normalize.scss
|
136
134
|
- docs/_sass/rouge-github.scss
|
137
135
|
- docs/_sass/variables.scss
|
138
|
-
- docs/_site/CODE_OF_CONDUCT.html
|
139
|
-
- docs/_site/CONTRIBUTING.html
|
140
136
|
- docs/_site/Code.html
|
141
137
|
- docs/_site/Comparing_Code.html
|
142
138
|
- docs/_site/How_to_Build.html
|
@@ -145,6 +141,7 @@ files:
|
|
145
141
|
- docs/_site/assets/css/pace.css
|
146
142
|
- docs/_site/assets/css/style.css
|
147
143
|
- docs/_site/assets/js/pace.min.js
|
144
|
+
- docs/_site/assets/js/scrolling_title.js
|
148
145
|
- docs/_site/index.html
|
149
146
|
- docs/_site/script/bootstrap
|
150
147
|
- docs/_site/script/cibuild
|
@@ -154,6 +151,7 @@ files:
|
|
154
151
|
- docs/assets/css/pace.css
|
155
152
|
- docs/assets/css/style.scss
|
156
153
|
- docs/assets/js/pace.min.js
|
154
|
+
- docs/assets/js/scrolling_title.js
|
157
155
|
- docs/index.md
|
158
156
|
- docs/jekyll-theme-cayman.gemspec
|
159
157
|
- docs/script/bootstrap
|
metadata.gz.sig
CHANGED
Binary file
|
data/docs/CODE_OF_CONDUCT.md
DELETED
@@ -1,85 +0,0 @@
|
|
1
|
-
---
|
2
|
-
layout: default
|
3
|
-
title: Code of Conduct - Play Rock Paper Scissors Game
|
4
|
-
---
|
5
|
-
|
6
|
-
# Contributor Covenant Code of Conduct
|
7
|
-
|
8
|
-
## Our Pledge
|
9
|
-
|
10
|
-
In the interest of fostering an open and welcoming environment, we as
|
11
|
-
contributors and maintainers pledge to making participation in our project and
|
12
|
-
our community a harassment-free experience for everyone, regardless of age, body
|
13
|
-
size, disability, ethnicity, gender identity and expression, level of experience,
|
14
|
-
nationality, personal appearance, race, religion, or sexual identity and
|
15
|
-
orientation.
|
16
|
-
|
17
|
-
## Our Standards
|
18
|
-
|
19
|
-
Examples of behavior that contributes to creating a positive environment
|
20
|
-
include:
|
21
|
-
|
22
|
-
* Using welcoming and inclusive language
|
23
|
-
* Being respectful of differing viewpoints and experiences
|
24
|
-
* Gracefully accepting constructive criticism
|
25
|
-
* Focusing on what is best for the community
|
26
|
-
* Showing empathy towards other community members
|
27
|
-
|
28
|
-
Examples of unacceptable behavior by participants include:
|
29
|
-
|
30
|
-
* The use of sexualized language or imagery and unwelcome sexual attention or
|
31
|
-
advances
|
32
|
-
* Trolling, insulting/derogatory comments, and personal or political attacks
|
33
|
-
* Public or private harassment
|
34
|
-
* Publishing others' private information, such as a physical or electronic
|
35
|
-
address, without explicit permission
|
36
|
-
* Other conduct which could reasonably be considered inappropriate in a
|
37
|
-
professional setting
|
38
|
-
|
39
|
-
## Our Responsibilities
|
40
|
-
|
41
|
-
Project maintainers are responsible for clarifying the standards of acceptable
|
42
|
-
behavior and are expected to take appropriate and fair corrective action in
|
43
|
-
response to any instances of unacceptable behavior.
|
44
|
-
|
45
|
-
Project maintainers have the right and responsibility to remove, edit, or
|
46
|
-
reject comments, commits, code, wiki edits, issues, and other contributions
|
47
|
-
that are not aligned to this Code of Conduct, or to ban temporarily or
|
48
|
-
permanently any contributor for other behaviors that they deem inappropriate,
|
49
|
-
threatening, offensive, or harmful.
|
50
|
-
|
51
|
-
## Scope
|
52
|
-
|
53
|
-
This Code of Conduct applies both within project spaces and in public spaces
|
54
|
-
when an individual is representing the project or its community. Examples of
|
55
|
-
representing a project or community include using an official project e-mail
|
56
|
-
address, posting via an official social media account, or acting as an appointed
|
57
|
-
representative at an online or offline event. Representation of a project may be
|
58
|
-
further defined and clarified by project maintainers.
|
59
|
-
|
60
|
-
## Enforcement
|
61
|
-
|
62
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
63
|
-
reported by contacting the project team at https://github.com/contact/report-abuse. All
|
64
|
-
complaints will be reviewed and investigated and will result in a response that
|
65
|
-
is deemed necessary and appropriate to the circumstances. The project team is
|
66
|
-
obligated to maintain confidentiality with regard to the reporter of an incident.
|
67
|
-
Further details of specific enforcement policies may be posted separately.
|
68
|
-
|
69
|
-
Project maintainers who do not follow or enforce the Code of Conduct in good
|
70
|
-
faith may face temporary or permanent repercussions as determined by other
|
71
|
-
members of the project's leadership.
|
72
|
-
|
73
|
-
## Attribution
|
74
|
-
|
75
|
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
76
|
-
available at [http://contributor-covenant.org/version/1/4][version]
|
77
|
-
|
78
|
-
[homepage]: http://contributor-covenant.org
|
79
|
-
[version]: http://contributor-covenant.org/version/1/4/
|
80
|
-
|
81
|
-
------------
|
82
|
-
|
83
|
-
## Site Nav
|
84
|
-
|
85
|
-
[Home](./) | [Comparing Code](Comparing_Code) | [How to Build](How_to_Build) | [Master Code](Code) | [Contributing](CONTRIBUTING) | [How to Test](Testing)
|
data/docs/CONTRIBUTING.md
DELETED
@@ -1,44 +0,0 @@
|
|
1
|
-
---
|
2
|
-
layout: default
|
3
|
-
title: Contributing - Play Rock Paper Scissors Game
|
4
|
-
---
|
5
|
-
|
6
|
-
## Contributing
|
7
|
-
|
8
|
-
Hi there! We're thrilled that you'd like to contribute to this project. Your help is essential for keeping it great.
|
9
|
-
|
10
|
-
Please note that this project is released with a [Contributor Code of Conduct][code-of-conduct]. By participating in this project you agree to abide by its terms.
|
11
|
-
|
12
|
-
## Submitting a pull request
|
13
|
-
|
14
|
-
0. [Fork][fork] and clone the repository
|
15
|
-
0. Configure and install the dependencies: `script/bootstrap`
|
16
|
-
0. Make sure the tests pass on your machine: `script/cibuild`
|
17
|
-
0. Create a new branch: `git checkout -b my-branch-name`
|
18
|
-
0. Make your change, add tests, and make sure the tests still pass
|
19
|
-
0. Push to your fork and [submit a pull request][pr]
|
20
|
-
0. Pat your self on the back and wait for your pull request to be reviewed and merged.
|
21
|
-
|
22
|
-
Here are a few things you can do that will increase the likelihood of your pull request being accepted:
|
23
|
-
|
24
|
-
- Follow the [style guide][style].
|
25
|
-
- Write tests.
|
26
|
-
- Keep your change as focused as possible. If there are multiple changes you would like to make that are not dependent upon each other, consider submitting them as separate pull requests.
|
27
|
-
- Write a [good commit message](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html).
|
28
|
-
|
29
|
-
## Resources
|
30
|
-
|
31
|
-
- [Contributing to Open Source on GitHub](https://guides.github.com/activities/contributing-to-open-source/)
|
32
|
-
- [Using Pull Requests](https://help.github.com/articles/using-pull-requests/)
|
33
|
-
- [GitHub Help](https://help.github.com)
|
34
|
-
|
35
|
-
[fork]: https://github.com/pages-themes/cayman/fork
|
36
|
-
[pr]: https://github.com/pages-themes/cayman/compare
|
37
|
-
[style]: http://ben.balter.com/jekyll-style-guide/
|
38
|
-
[code-of-conduct]: CODE_OF_CONDUCT.md
|
39
|
-
|
40
|
-
------------
|
41
|
-
|
42
|
-
## Site Nav
|
43
|
-
|
44
|
-
[Home](./) | [Comparing Code](Comparing_Code) | [How to Build](How_to_Build) | [Master Code](Code) | [Code of Conduct](CODE_OF_CONDUCT) | [How to Test](Testing.md)
|
@@ -1,141 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html lang="en-us">
|
3
|
-
<head>
|
4
|
-
<meta charset="UTF-8">
|
5
|
-
<title>Code of Conduct - Play Rock Paper Scissors Game</title>
|
6
|
-
<meta name="description" content="A Ruby Programmed Rock Paper Scissors Game"/>
|
7
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
8
|
-
<meta name="theme-color" content="#157878">
|
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=6569c3459830dd82e84103ba0272657c0c4d82af">
|
11
|
-
<link rel="stylesheet" href="assets/css/pace.css" />
|
12
|
-
<script src="assets/js/pace.min.js"></script>
|
13
|
-
</head>
|
14
|
-
<body>
|
15
|
-
|
16
|
-
<section class="page-header">
|
17
|
-
<h1 class="project-name">Play Rock Paper Scissors Game</h1>
|
18
|
-
<h2 class="project-tagline">A Ruby Programmed Rock Paper Scissors Game</h2>
|
19
|
-
|
20
|
-
<a href="http://github.com/bag3318/RockPaperScissors" class="btn">View on GitHub</a>
|
21
|
-
<a href="http://github.com/bag3318/RockPaperScissors/issues" class="btn">Report a Bug</a>
|
22
|
-
|
23
|
-
|
24
|
-
<a href="http://github.com/bag3318/RockPaperScissors/zipball/gh-pages" class="btn">Download .zip</a>
|
25
|
-
<a href="http://github.com/bag3318/RockPaperScissors/tarball/gh-pages" class="btn">Download .tar.gz</a>
|
26
|
-
|
27
|
-
<br/>
|
28
|
-
|
29
|
-
<a href="#site-nav" class="btn">Site Nav</a>
|
30
|
-
|
31
|
-
|
32
|
-
<a href="./" class="btn">Home</a>
|
33
|
-
|
34
|
-
</section>
|
35
|
-
|
36
|
-
<section class="main-content">
|
37
|
-
|
38
|
-
<h1 id="contributor-covenant-code-of-conduct">Contributor Covenant Code of Conduct</h1>
|
39
|
-
|
40
|
-
<h2 id="our-pledge">Our Pledge</h2>
|
41
|
-
|
42
|
-
<p>In the interest of fostering an open and welcoming environment, we as
|
43
|
-
contributors and maintainers pledge to making participation in our project and
|
44
|
-
our community a harassment-free experience for everyone, regardless of age, body
|
45
|
-
size, disability, ethnicity, gender identity and expression, level of experience,
|
46
|
-
nationality, personal appearance, race, religion, or sexual identity and
|
47
|
-
orientation.</p>
|
48
|
-
|
49
|
-
<h2 id="our-standards">Our Standards</h2>
|
50
|
-
|
51
|
-
<p>Examples of behavior that contributes to creating a positive environment
|
52
|
-
include:</p>
|
53
|
-
|
54
|
-
<ul>
|
55
|
-
<li>Using welcoming and inclusive language</li>
|
56
|
-
<li>Being respectful of differing viewpoints and experiences</li>
|
57
|
-
<li>Gracefully accepting constructive criticism</li>
|
58
|
-
<li>Focusing on what is best for the community</li>
|
59
|
-
<li>Showing empathy towards other community members</li>
|
60
|
-
</ul>
|
61
|
-
|
62
|
-
<p>Examples of unacceptable behavior by participants include:</p>
|
63
|
-
|
64
|
-
<ul>
|
65
|
-
<li>The use of sexualized language or imagery and unwelcome sexual attention or
|
66
|
-
advances</li>
|
67
|
-
<li>Trolling, insulting/derogatory comments, and personal or political attacks</li>
|
68
|
-
<li>Public or private harassment</li>
|
69
|
-
<li>Publishing others’ private information, such as a physical or electronic
|
70
|
-
address, without explicit permission</li>
|
71
|
-
<li>Other conduct which could reasonably be considered inappropriate in a
|
72
|
-
professional setting</li>
|
73
|
-
</ul>
|
74
|
-
|
75
|
-
<h2 id="our-responsibilities">Our Responsibilities</h2>
|
76
|
-
|
77
|
-
<p>Project maintainers are responsible for clarifying the standards of acceptable
|
78
|
-
behavior and are expected to take appropriate and fair corrective action in
|
79
|
-
response to any instances of unacceptable behavior.</p>
|
80
|
-
|
81
|
-
<p>Project maintainers have the right and responsibility to remove, edit, or
|
82
|
-
reject comments, commits, code, wiki edits, issues, and other contributions
|
83
|
-
that are not aligned to this Code of Conduct, or to ban temporarily or
|
84
|
-
permanently any contributor for other behaviors that they deem inappropriate,
|
85
|
-
threatening, offensive, or harmful.</p>
|
86
|
-
|
87
|
-
<h2 id="scope">Scope</h2>
|
88
|
-
|
89
|
-
<p>This Code of Conduct applies both within project spaces and in public spaces
|
90
|
-
when an individual is representing the project or its community. Examples of
|
91
|
-
representing a project or community include using an official project e-mail
|
92
|
-
address, posting via an official social media account, or acting as an appointed
|
93
|
-
representative at an online or offline event. Representation of a project may be
|
94
|
-
further defined and clarified by project maintainers.</p>
|
95
|
-
|
96
|
-
<h2 id="enforcement">Enforcement</h2>
|
97
|
-
|
98
|
-
<p>Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
99
|
-
reported by contacting the project team at https://github.com/contact/report-abuse. All
|
100
|
-
complaints will be reviewed and investigated and will result in a response that
|
101
|
-
is deemed necessary and appropriate to the circumstances. The project team is
|
102
|
-
obligated to maintain confidentiality with regard to the reporter of an incident.
|
103
|
-
Further details of specific enforcement policies may be posted separately.</p>
|
104
|
-
|
105
|
-
<p>Project maintainers who do not follow or enforce the Code of Conduct in good
|
106
|
-
faith may face temporary or permanent repercussions as determined by other
|
107
|
-
members of the project’s leadership.</p>
|
108
|
-
|
109
|
-
<h2 id="attribution">Attribution</h2>
|
110
|
-
|
111
|
-
<p>This Code of Conduct is adapted from the <a href="http://contributor-covenant.org">Contributor Covenant</a>, version 1.4,
|
112
|
-
available at <a href="http://contributor-covenant.org/version/1/4/">http://contributor-covenant.org/version/1/4</a></p>
|
113
|
-
|
114
|
-
<hr />
|
115
|
-
|
116
|
-
<h2 id="site-nav">Site Nav</h2>
|
117
|
-
|
118
|
-
<table>
|
119
|
-
<tbody>
|
120
|
-
<tr>
|
121
|
-
<td><a href="./">Home</a></td>
|
122
|
-
<td><a href="Comparing_Code">Comparing Code</a></td>
|
123
|
-
<td><a href="How_to_Build">How to Build</a></td>
|
124
|
-
<td><a href="Code">Master Code</a></td>
|
125
|
-
<td><a href="CONTRIBUTING">Contributing</a></td>
|
126
|
-
<td><a href="Testing">How to Test</a></td>
|
127
|
-
</tr>
|
128
|
-
</tbody>
|
129
|
-
</table>
|
130
|
-
|
131
|
-
|
132
|
-
<footer class="site-footer">
|
133
|
-
|
134
|
-
<span class="site-footer-owner"><a href="http://github.com/bag3318/RockPaperScissors">RockPaperScissors</a> is maintained by <a href="http://github.com/bag3318">bag3318</a>.</span>
|
135
|
-
|
136
|
-
</footer>
|
137
|
-
</section>
|
138
|
-
|
139
|
-
|
140
|
-
</body>
|
141
|
-
</html>
|
@@ -1,100 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html lang="en-us">
|
3
|
-
<head>
|
4
|
-
<meta charset="UTF-8">
|
5
|
-
<title>Contributing - Play Rock Paper Scissors Game</title>
|
6
|
-
<meta name="description" content="A Ruby Programmed Rock Paper Scissors Game"/>
|
7
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
8
|
-
<meta name="theme-color" content="#157878">
|
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=6569c3459830dd82e84103ba0272657c0c4d82af">
|
11
|
-
<link rel="stylesheet" href="assets/css/pace.css" />
|
12
|
-
<script src="assets/js/pace.min.js"></script>
|
13
|
-
</head>
|
14
|
-
<body>
|
15
|
-
|
16
|
-
<section class="page-header">
|
17
|
-
<h1 class="project-name">Play Rock Paper Scissors Game</h1>
|
18
|
-
<h2 class="project-tagline">A Ruby Programmed Rock Paper Scissors Game</h2>
|
19
|
-
|
20
|
-
<a href="http://github.com/bag3318/RockPaperScissors" class="btn">View on GitHub</a>
|
21
|
-
<a href="http://github.com/bag3318/RockPaperScissors/issues" class="btn">Report a Bug</a>
|
22
|
-
|
23
|
-
|
24
|
-
<a href="http://github.com/bag3318/RockPaperScissors/zipball/gh-pages" class="btn">Download .zip</a>
|
25
|
-
<a href="http://github.com/bag3318/RockPaperScissors/tarball/gh-pages" class="btn">Download .tar.gz</a>
|
26
|
-
|
27
|
-
<br/>
|
28
|
-
|
29
|
-
<a href="#site-nav" class="btn">Site Nav</a>
|
30
|
-
|
31
|
-
|
32
|
-
<a href="./" class="btn">Home</a>
|
33
|
-
|
34
|
-
</section>
|
35
|
-
|
36
|
-
<section class="main-content">
|
37
|
-
|
38
|
-
<h2 id="contributing">Contributing</h2>
|
39
|
-
|
40
|
-
<p>Hi there! We’re thrilled that you’d like to contribute to this project. Your help is essential for keeping it great.</p>
|
41
|
-
|
42
|
-
<p>Please note that this project is released with a <a href="/CODE_OF_CONDUCT.html">Contributor Code of Conduct</a>. By participating in this project you agree to abide by its terms.</p>
|
43
|
-
|
44
|
-
<h2 id="submitting-a-pull-request">Submitting a pull request</h2>
|
45
|
-
|
46
|
-
<ol>
|
47
|
-
<li><a href="https://github.com/pages-themes/cayman/fork">Fork</a> and clone the repository</li>
|
48
|
-
<li>Configure and install the dependencies: <code class="highlighter-rouge">script/bootstrap</code></li>
|
49
|
-
<li>Make sure the tests pass on your machine: <code class="highlighter-rouge">script/cibuild</code></li>
|
50
|
-
<li>Create a new branch: <code class="highlighter-rouge">git checkout -b my-branch-name</code></li>
|
51
|
-
<li>Make your change, add tests, and make sure the tests still pass</li>
|
52
|
-
<li>Push to your fork and <a href="https://github.com/pages-themes/cayman/compare">submit a pull request</a></li>
|
53
|
-
<li>Pat your self on the back and wait for your pull request to be reviewed and merged.</li>
|
54
|
-
</ol>
|
55
|
-
|
56
|
-
<p>Here are a few things you can do that will increase the likelihood of your pull request being accepted:</p>
|
57
|
-
|
58
|
-
<ul>
|
59
|
-
<li>Follow the <a href="http://ben.balter.com/jekyll-style-guide/">style guide</a>.</li>
|
60
|
-
<li>Write tests.</li>
|
61
|
-
<li>Keep your change as focused as possible. If there are multiple changes you would like to make that are not dependent upon each other, consider submitting them as separate pull requests.</li>
|
62
|
-
<li>Write a <a href="http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html">good commit message</a>.</li>
|
63
|
-
</ul>
|
64
|
-
|
65
|
-
<h2 id="resources">Resources</h2>
|
66
|
-
|
67
|
-
<ul>
|
68
|
-
<li><a href="https://guides.github.com/activities/contributing-to-open-source/">Contributing to Open Source on GitHub</a></li>
|
69
|
-
<li><a href="https://help.github.com/articles/using-pull-requests/">Using Pull Requests</a></li>
|
70
|
-
<li><a href="https://help.github.com">GitHub Help</a></li>
|
71
|
-
</ul>
|
72
|
-
|
73
|
-
<hr />
|
74
|
-
|
75
|
-
<h2 id="site-nav">Site Nav</h2>
|
76
|
-
|
77
|
-
<table>
|
78
|
-
<tbody>
|
79
|
-
<tr>
|
80
|
-
<td><a href="./">Home</a></td>
|
81
|
-
<td><a href="Comparing_Code">Comparing Code</a></td>
|
82
|
-
<td><a href="How_to_Build">How to Build</a></td>
|
83
|
-
<td><a href="Code">Master Code</a></td>
|
84
|
-
<td><a href="CODE_OF_CONDUCT">Code of Conduct</a></td>
|
85
|
-
<td><a href="/Testing.html">How to Test</a></td>
|
86
|
-
</tr>
|
87
|
-
</tbody>
|
88
|
-
</table>
|
89
|
-
|
90
|
-
|
91
|
-
<footer class="site-footer">
|
92
|
-
|
93
|
-
<span class="site-footer-owner"><a href="http://github.com/bag3318/RockPaperScissors">RockPaperScissors</a> is maintained by <a href="http://github.com/bag3318">bag3318</a>.</span>
|
94
|
-
|
95
|
-
</footer>
|
96
|
-
</section>
|
97
|
-
|
98
|
-
|
99
|
-
</body>
|
100
|
-
</html>
|