PlayRockPaperScissorsGame 2.7.2 → 2.7.3
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 +1 -1
- data/docs/Comparing_Code.md +27 -1
- data/docs/How_to_Run.md +56 -0
- data/docs/_config.yml +14 -8
- data/docs/_includes/footer.html +1 -0
- data/docs/_site/Code.html +3 -2
- data/docs/_site/Comparing_Code.html +29 -2
- data/docs/_site/How_to_Build.html +2 -1
- data/docs/_site/Testing.html +2 -1
- data/docs/_site/about.html +2 -1
- data/docs/_site/assets/css/style.css +1 -318
- data/docs/_site/how_to_run.html +145 -0
- data/docs/_site/index.html +5 -74
- data/docs/index.md +4 -48
- data/lib/rps/version.rb +1 -1
- data/rps.gemspec +1 -1
- metadata +3 -2
- metadata.gz.sig +0 -0
- data/docs/_site/copying.html +0 -110
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 321633aa1cddfd9e430305ec4c39c1eed0872f15
|
4
|
+
data.tar.gz: 0d1e7fa0dc3aed2a07c56bdd186cf9ca30d11358
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7fe8d1a632b948b5d5711d8101222349c8ded2154e96ddd8f46d40c5519b333b9401a0fbae84362bbfeb7538a29bbd832767a64e1e61a843bad30fca59884be
|
7
|
+
data.tar.gz: 4bcc4c35d08a0d96952882fa5330f58b0519807ea0b5f3999f80a75afca101a6bc78a886ce940fa386566cfe539ef745ddb97a68448856259dc77075125f8d20
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/docs/Code.md
CHANGED
data/docs/Comparing_Code.md
CHANGED
@@ -12,10 +12,12 @@ permalink: /Comparing_Code.html
|
|
12
12
|
- [Beginner's Code](#beginners-code)
|
13
13
|
- [Beginner's Code Pros](#beginners-code-pros)
|
14
14
|
- [Beginner's Code Cons](#beginners-code-cons)
|
15
|
+
- [Beginner's Analysis](#beginners-analysis)
|
15
16
|
- [What Beginner's Code Looks Like](#what-beginners-code-looks-like)
|
16
17
|
- [Advanced Code](#advanced-code)
|
17
18
|
- [Advanced Code Pros](#advanced-code-pros)
|
18
19
|
- [Advanced Code Cons](#advanced-code-cons)
|
20
|
+
- [Advanced Analysis](#advanced-analysis)
|
19
21
|
- [What Advanced Code Looks Like](#what-advanced-code-looks-like)
|
20
22
|
|
21
23
|
## Beginner's Code
|
@@ -32,6 +34,20 @@ permalink: /Comparing_Code.html
|
|
32
34
|
- Lacks modularization
|
33
35
|
* Many `if`s and `else`s
|
34
36
|
|
37
|
+
### Beginner's Analysis
|
38
|
+
|
39
|
+
It is common for beginners to use many repetitive statements when coding a simple Ruby app.
|
40
|
+
|
41
|
+
In this case, using many `if`/`elsif`/`else` statements is typical beginner code formatting when programming a rock-paper-scissors game.
|
42
|
+
|
43
|
+
The beginner's code might also show redundancy by programming more than what needs to be coded (this situation is different for advanced Ruby programmers).
|
44
|
+
|
45
|
+
Most beginners' code lacks modularization and a solid code structure; thus making it very unorganized.
|
46
|
+
|
47
|
+
While beginners' code might look simple and easy to understand, it is not always the most efficient.
|
48
|
+
|
49
|
+
In this particular case, the advanced code is longer and more confusing, though it has more modularization and professionalism attached to it (in some cases, it will actually run faster than the beginner's code).
|
50
|
+
|
35
51
|
### What Beginner's Code Looks Like
|
36
52
|
|
37
53
|
`% ruby beginner-rps.rb`
|
@@ -81,6 +97,16 @@ end
|
|
81
97
|
+ Long
|
82
98
|
- Hard to understand
|
83
99
|
|
100
|
+
### Advanced Analysis
|
101
|
+
|
102
|
+
An advanced coder's code could be longer or shorter than a beginner's code.
|
103
|
+
|
104
|
+
Advanced code usually has seldom repetition and more subtle programming.
|
105
|
+
|
106
|
+
Advanced coders tend to shy away from many `if`, `elsif`, & `else` statements. This is primarily due to the way an advanced coder thinks. One might replace multiple `elsif`s with a `case` statement --adding more structure and organization to the code.--
|
107
|
+
|
108
|
+
Subtlety is usually painted all over advanced ruby code. While this does make the code harder to understand, it certainly adds more structure professionalism to the code.
|
109
|
+
|
84
110
|
### What Advanced Code Looks Like
|
85
111
|
|
86
112
|
`% ruby advanced-rps.rb`
|
@@ -89,7 +115,7 @@ end
|
|
89
115
|
class PlayRockPaperScissorsGame
|
90
116
|
|
91
117
|
module RockPaperScissors
|
92
|
-
VERSION = "2.7.
|
118
|
+
VERSION = "2.7.3"
|
93
119
|
end
|
94
120
|
|
95
121
|
# import colorize gem
|
data/docs/How_to_Run.md
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
title: How to Run - Play Rock Paper Scissors Game
|
4
|
+
permalink: /how_to_run.html
|
5
|
+
---
|
6
|
+
|
7
|
+
[//]: # (start)
|
8
|
+
|
9
|
+
Rock Paper Scissors
|
10
|
+
===================
|
11
|
+
|
12
|
+
**Table of Contents**
|
13
|
+
|
14
|
+
- [Rock Paper Scissors](#rock-paper-scissors)
|
15
|
+
- [How to Run and Install](#how-to-run-and-install)
|
16
|
+
- [Install and Run on Mac](#install-and-run-on-mac)
|
17
|
+
- [Running](#running)
|
18
|
+
- [Uninstalling](#uninstalling)
|
19
|
+
- [Install and Run on Windows](#install-and-run-on-windows)
|
20
|
+
- [Running](#running-1)
|
21
|
+
- [Links](#links)
|
22
|
+
|
23
|
+
How to Run and Install
|
24
|
+
----------------------
|
25
|
+
|
26
|
+
### Install and Run on Mac
|
27
|
+
|
28
|
+
1. Run the `rps.bash` file (located in the `exec` folder) with the `Terminal`
|
29
|
+
|
30
|
+
#### Running
|
31
|
+
|
32
|
+
1. Open the `Terminal`
|
33
|
+
2. Type in: `rps`, or `PlayRockPaperScissorsGame`
|
34
|
+
3. Hit <kbd>return</kbd>
|
35
|
+
|
36
|
+
#### Uninstalling
|
37
|
+
|
38
|
+
1. Run the `uninstaller.sh` file (located in the `exec` folder) with the `Terminal`
|
39
|
+
|
40
|
+
### Install and Run on Windows
|
41
|
+
|
42
|
+
1. Download and install Ruby for Windows (if not already installed); download [here](https://rubyinstaller.org/downloads/)
|
43
|
+
2. Open `cmd` and type in: `gem install PlayRockPaperScissorsGame`; hit <kbd>enter</kbd>
|
44
|
+
3. Run the `rps.bat` file (located in the `exec` folder)
|
45
|
+
|
46
|
+
#### Running
|
47
|
+
|
48
|
+
1. Open the `rps.bat` file (located in the `exec` folder)
|
49
|
+
* Another option: type in `rps` or `PlayRockPaperScissorsGame` in the `Command Prompt`; hit <kbd>enter</kbd>
|
50
|
+
|
51
|
+
## Links
|
52
|
+
|
53
|
+
+ [Ruby Gems Page](https://rubygems.org/gems/PlayRockPaperScissorsGame)
|
54
|
+
- [Source Code](https://github.com/bag3318/RockPaperScissors)
|
55
|
+
|
56
|
+
[//]: # (end)
|
data/docs/_config.yml
CHANGED
@@ -3,17 +3,23 @@ description: A Ruby Programmed Rock Paper Scissors Game
|
|
3
3
|
show_downloads: true
|
4
4
|
google_analytics: false
|
5
5
|
theme: jekyll-theme-cayman # important
|
6
|
-
exclude: [
|
7
|
-
Gemfile,
|
8
|
-
Gemfile.lock,
|
9
|
-
jekyll-theme-cayman.gemspec,
|
10
|
-
thumbnail.png,
|
11
|
-
LICENSE
|
12
|
-
]
|
13
6
|
include:
|
14
7
|
- index.md
|
15
8
|
- Code.md
|
16
9
|
- Comparing_Code.md
|
17
10
|
- Testing.md
|
18
11
|
- How_to_Build.md
|
19
|
-
- about.md
|
12
|
+
- about.md
|
13
|
+
exclude:
|
14
|
+
- Gemfile
|
15
|
+
- Gemfile.lock
|
16
|
+
- jekyll-theme-cayman.gemspec
|
17
|
+
- thumbnail.png
|
18
|
+
- LICENSE
|
19
|
+
- Copying.md
|
20
|
+
gems:
|
21
|
+
- github-pages
|
22
|
+
# Sass/SCSS
|
23
|
+
sass:
|
24
|
+
sass_dir: _sass
|
25
|
+
style: compressed # http://sass-lang.com/documentation/file.SASS_REFERENCE.html#output_style
|
data/docs/_includes/footer.html
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
<table>
|
5
5
|
<tr>
|
6
6
|
<td><a href="./">Home</a></td>
|
7
|
+
<td><a href="{{ domain }}how_to_run">How to Run</a></td>
|
7
8
|
<td><a href="{{ domain }}Code">Master Code</a></td>
|
8
9
|
<td><a href="{{ domain }}Comparing_Code">Comparing Code</a></td>
|
9
10
|
<td><a href="{{ domain }}Testing">How to Test</a></td>
|
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=7607561e35662be7dca0c5bdcc529f14f576044b"/>
|
11
11
|
<link rel="stylesheet" href="assets/css/pace.css" />
|
12
12
|
<script src="assets/js/pace.min.js"></script>
|
13
13
|
|
@@ -72,7 +72,7 @@
|
|
72
72
|
<span class="k">class</span> <span class="nc">PlayRockPaperScissorsGame</span>
|
73
73
|
|
74
74
|
<span class="k">module</span> <span class="nn">RockPaperScissors</span>
|
75
|
-
<span class="no">VERSION</span> <span class="o">=</span> <span class="s2">"2.7.
|
75
|
+
<span class="no">VERSION</span> <span class="o">=</span> <span class="s2">"2.7.3"</span>
|
76
76
|
<span class="k">end</span>
|
77
77
|
|
78
78
|
<span class="c1"># import the colorize gem</span>
|
@@ -198,6 +198,7 @@
|
|
198
198
|
<table>
|
199
199
|
<tr>
|
200
200
|
<td><a href="./">Home</a></td>
|
201
|
+
<td><a href="how_to_run">How to Run</a></td>
|
201
202
|
<td><a href="Code">Master Code</a></td>
|
202
203
|
<td><a href="Comparing_Code">Comparing Code</a></td>
|
203
204
|
<td><a href="Testing">How to Test</a></td>
|
@@ -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=7607561e35662be7dca0c5bdcc529f14f576044b"/>
|
11
11
|
<link rel="stylesheet" href="assets/css/pace.css" />
|
12
12
|
<script src="assets/js/pace.min.js"></script>
|
13
13
|
|
@@ -54,6 +54,7 @@
|
|
54
54
|
<ul>
|
55
55
|
<li><a href="#beginners-code-pros">Beginner’s Code Pros</a></li>
|
56
56
|
<li><a href="#beginners-code-cons">Beginner’s Code Cons</a></li>
|
57
|
+
<li><a href="#beginners-analysis">Beginner’s Analysis</a></li>
|
57
58
|
<li><a href="#what-beginners-code-looks-like">What Beginner’s Code Looks Like</a></li>
|
58
59
|
</ul>
|
59
60
|
</li>
|
@@ -61,6 +62,7 @@
|
|
61
62
|
<ul>
|
62
63
|
<li><a href="#advanced-code-pros">Advanced Code Pros</a></li>
|
63
64
|
<li><a href="#advanced-code-cons">Advanced Code Cons</a></li>
|
65
|
+
<li><a href="#advanced-analysis">Advanced Analysis</a></li>
|
64
66
|
<li><a href="#what-advanced-code-looks-like">What Advanced Code Looks Like</a></li>
|
65
67
|
</ul>
|
66
68
|
</li>
|
@@ -86,6 +88,20 @@
|
|
86
88
|
<li>Many <code class="highlighter-rouge">if</code>s and <code class="highlighter-rouge">else</code>s</li>
|
87
89
|
</ul>
|
88
90
|
|
91
|
+
<h3 id="beginners-analysis">Beginner’s Analysis</h3>
|
92
|
+
|
93
|
+
<p>It is common for beginners to use many repetitive statements when coding a simple Ruby app.</p>
|
94
|
+
|
95
|
+
<p>In this case, using many <code class="highlighter-rouge">if</code>/<code class="highlighter-rouge">elsif</code>/<code class="highlighter-rouge">else</code> statements is typical beginner code formatting when programming a rock-paper-scissors game.</p>
|
96
|
+
|
97
|
+
<p>The beginner’s code might also show redundancy by programming more than what needs to be coded (this situation is different for advanced Ruby programmers).</p>
|
98
|
+
|
99
|
+
<p>Most beginners’ code lacks modularization and a solid code structure; thus making it very unorganized.</p>
|
100
|
+
|
101
|
+
<p>While beginners’ code might look simple and easy to understand, it is not always the most efficient.</p>
|
102
|
+
|
103
|
+
<p>In this particular case, the advanced code is longer and more confusing, though it has more modularization and professionalism attached to it (in some cases, it will actually run faster than the beginner’s code).</p>
|
104
|
+
|
89
105
|
<h3 id="what-beginners-code-looks-like">What Beginner’s Code Looks Like</h3>
|
90
106
|
|
91
107
|
<p><code class="highlighter-rouge">% ruby beginner-rps.rb</code></p>
|
@@ -139,6 +155,16 @@
|
|
139
155
|
<li>Hard to understand</li>
|
140
156
|
</ul>
|
141
157
|
|
158
|
+
<h3 id="advanced-analysis">Advanced Analysis</h3>
|
159
|
+
|
160
|
+
<p>An advanced coder’s code could be longer or shorter than a beginner’s code.</p>
|
161
|
+
|
162
|
+
<p>Advanced code usually has seldom repetition and more subtle programming.</p>
|
163
|
+
|
164
|
+
<p>Advanced coders tend to shy away from many <code class="highlighter-rouge">if</code>, <code class="highlighter-rouge">elsif</code>, & <code class="highlighter-rouge">else</code> statements. This is primarily due to the way an advanced coder thinks. One might replace multiple <code class="highlighter-rouge">elsif</code>s with a <code class="highlighter-rouge">case</code> statement –adding more structure and organization to the code.–</p>
|
165
|
+
|
166
|
+
<p>Subtlety is usually painted all over advanced ruby code. While this does make the code harder to understand, it certainly adds more structure professionalism to the code.</p>
|
167
|
+
|
142
168
|
<h3 id="what-advanced-code-looks-like">What Advanced Code Looks Like</h3>
|
143
169
|
|
144
170
|
<p><code class="highlighter-rouge">% ruby advanced-rps.rb</code></p>
|
@@ -146,7 +172,7 @@
|
|
146
172
|
<div class="language-ruby highlighter-rouge"><pre class="highlight"><code><span class="k">class</span> <span class="nc">PlayRockPaperScissorsGame</span>
|
147
173
|
|
148
174
|
<span class="k">module</span> <span class="nn">RockPaperScissors</span>
|
149
|
-
<span class="no">VERSION</span> <span class="o">=</span> <span class="s2">"2.7.
|
175
|
+
<span class="no">VERSION</span> <span class="o">=</span> <span class="s2">"2.7.3"</span>
|
150
176
|
<span class="k">end</span>
|
151
177
|
|
152
178
|
<span class="c1"># import colorize gem</span>
|
@@ -271,6 +297,7 @@
|
|
271
297
|
<table>
|
272
298
|
<tr>
|
273
299
|
<td><a href="./">Home</a></td>
|
300
|
+
<td><a href="how_to_run">How to Run</a></td>
|
274
301
|
<td><a href="Code">Master Code</a></td>
|
275
302
|
<td><a href="Comparing_Code">Comparing Code</a></td>
|
276
303
|
<td><a href="Testing">How to Test</a></td>
|
@@ -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=7607561e35662be7dca0c5bdcc529f14f576044b"/>
|
11
11
|
<link rel="stylesheet" href="assets/css/pace.css" />
|
12
12
|
<script src="assets/js/pace.min.js"></script>
|
13
13
|
|
@@ -75,6 +75,7 @@
|
|
75
75
|
<table>
|
76
76
|
<tr>
|
77
77
|
<td><a href="./">Home</a></td>
|
78
|
+
<td><a href="how_to_run">How to Run</a></td>
|
78
79
|
<td><a href="Code">Master Code</a></td>
|
79
80
|
<td><a href="Comparing_Code">Comparing Code</a></td>
|
80
81
|
<td><a href="Testing">How to Test</a></td>
|
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=7607561e35662be7dca0c5bdcc529f14f576044b"/>
|
11
11
|
<link rel="stylesheet" href="assets/css/pace.css" />
|
12
12
|
<script src="assets/js/pace.min.js"></script>
|
13
13
|
|
@@ -68,6 +68,7 @@
|
|
68
68
|
<table>
|
69
69
|
<tr>
|
70
70
|
<td><a href="./">Home</a></td>
|
71
|
+
<td><a href="how_to_run">How to Run</a></td>
|
71
72
|
<td><a href="Code">Master Code</a></td>
|
72
73
|
<td><a href="Comparing_Code">Comparing Code</a></td>
|
73
74
|
<td><a href="Testing">How to Test</a></td>
|
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=7607561e35662be7dca0c5bdcc529f14f576044b"/>
|
11
11
|
<link rel="stylesheet" href="assets/css/pace.css" />
|
12
12
|
<script src="assets/js/pace.min.js"></script>
|
13
13
|
|
@@ -75,6 +75,7 @@ I have decided to code a Ruby-programmed RPS game that uses full CLI<sup>2</sup>
|
|
75
75
|
<table>
|
76
76
|
<tr>
|
77
77
|
<td><a href="./">Home</a></td>
|
78
|
+
<td><a href="how_to_run">How to Run</a></td>
|
78
79
|
<td><a href="Code">Master Code</a></td>
|
79
80
|
<td><a href="Comparing_Code">Comparing Code</a></td>
|
80
81
|
<td><a href="Testing">How to Test</a></td>
|
@@ -1,318 +1 @@
|
|
1
|
-
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
|
2
|
-
/** 1. Set default font family to sans-serif. 2. Prevent iOS text size adjust after orientation change, without disabling user zoom. */
|
3
|
-
html { font-family: sans-serif; /* 1 */ -ms-text-size-adjust: 100%; /* 2 */ -webkit-text-size-adjust: 100%; /* 2 */ }
|
4
|
-
|
5
|
-
/** Remove default margin. */
|
6
|
-
body { margin: 0; }
|
7
|
-
|
8
|
-
/* HTML5 display definitions ========================================================================== */
|
9
|
-
/** Correct `block` display not defined for any HTML5 element in IE 8/9. Correct `block` display not defined for `details` or `summary` in IE 10/11 and Firefox. Correct `block` display not defined for `main` in IE 11. */
|
10
|
-
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary { display: block; }
|
11
|
-
|
12
|
-
/** 1. Correct `inline-block` display not defined in IE 8/9. 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera. */
|
13
|
-
audio, canvas, progress, video { display: inline-block; /* 1 */ vertical-align: baseline; /* 2 */ }
|
14
|
-
|
15
|
-
/** Prevent modern browsers from displaying `audio` without controls. Remove excess height in iOS 5 devices. */
|
16
|
-
audio:not([controls]) { display: none; height: 0; }
|
17
|
-
|
18
|
-
/** Address `[hidden]` styling not present in IE 8/9/10. Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22. */
|
19
|
-
[hidden], template { display: none; }
|
20
|
-
|
21
|
-
/* Links ========================================================================== */
|
22
|
-
/** Remove the gray background color from active links in IE 10. */
|
23
|
-
a { background-color: transparent; }
|
24
|
-
|
25
|
-
/** Improve readability when focused and also mouse hovered in all browsers. */
|
26
|
-
a:active, a:hover { outline: 0; }
|
27
|
-
|
28
|
-
/* Text-level semantics ========================================================================== */
|
29
|
-
/** Address styling not present in IE 8/9/10/11, Safari, and Chrome. */
|
30
|
-
abbr[title] { border-bottom: 1px dotted; }
|
31
|
-
|
32
|
-
/** Address style set to `bolder` in Firefox 4+, Safari, and Chrome. */
|
33
|
-
b, strong { font-weight: bold; }
|
34
|
-
|
35
|
-
/** Address styling not present in Safari and Chrome. */
|
36
|
-
dfn { font-style: italic; }
|
37
|
-
|
38
|
-
/** Address variable `h1` font-size and margin within `section` and `article` contexts in Firefox 4+, Safari, and Chrome. */
|
39
|
-
h1 { font-size: 2em; margin: 0.67em 0; }
|
40
|
-
|
41
|
-
/** Address styling not present in IE 8/9. */
|
42
|
-
mark { background: #ff0; color: #000; }
|
43
|
-
|
44
|
-
/** Address inconsistent and variable font size in all browsers. */
|
45
|
-
small { font-size: 80%; }
|
46
|
-
|
47
|
-
/** Prevent `sub` and `sup` affecting `line-height` in all browsers. */
|
48
|
-
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
|
49
|
-
|
50
|
-
sup { top: -0.5em; }
|
51
|
-
|
52
|
-
sub { bottom: -0.25em; }
|
53
|
-
|
54
|
-
/* Embedded content ========================================================================== */
|
55
|
-
/** Remove border when inside `a` element in IE 8/9/10. */
|
56
|
-
img { border: 0; }
|
57
|
-
|
58
|
-
/** Correct overflow not hidden in IE 9/10/11. */
|
59
|
-
svg:not(:root) { overflow: hidden; }
|
60
|
-
|
61
|
-
/* Grouping content ========================================================================== */
|
62
|
-
/** Address margin not present in IE 8/9 and Safari. */
|
63
|
-
figure { margin: 1em 40px; }
|
64
|
-
|
65
|
-
/** Address differences between Firefox and other browsers. */
|
66
|
-
hr { box-sizing: content-box; height: 0; }
|
67
|
-
|
68
|
-
/** Contain overflow in all browsers. */
|
69
|
-
pre { overflow: auto; }
|
70
|
-
|
71
|
-
/** Address odd `em`-unit font size rendering in all browsers. */
|
72
|
-
code, kbd, pre, samp { font-family: monospace, monospace; font-size: 1em; }
|
73
|
-
|
74
|
-
/* Forms ========================================================================== */
|
75
|
-
/** Known limitation: by default, Chrome and Safari on OS X allow very limited styling of `select`, unless a `border` property is set. */
|
76
|
-
/** 1. Correct color not being inherited. Known issue: affects color of disabled elements. 2. Correct font properties not being inherited. 3. Address margins set differently in Firefox 4+, Safari, and Chrome. */
|
77
|
-
button, input, optgroup, select, textarea { color: inherit; /* 1 */ font: inherit; /* 2 */ margin: 0; /* 3 */ }
|
78
|
-
|
79
|
-
/** Address `overflow` set to `hidden` in IE 8/9/10/11. */
|
80
|
-
button { overflow: visible; }
|
81
|
-
|
82
|
-
/** Address inconsistent `text-transform` inheritance for `button` and `select`. All other form control elements do not inherit `text-transform` values. Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera. Correct `select` style inheritance in Firefox. */
|
83
|
-
button, select { text-transform: none; }
|
84
|
-
|
85
|
-
/** 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` and `video` controls. 2. Correct inability to style clickable `input` types in iOS. 3. Improve usability and consistency of cursor style between image-type `input` and others. */
|
86
|
-
button, html input[type="button"], input[type="reset"], input[type="submit"] { -webkit-appearance: button; /* 2 */ cursor: pointer; /* 3 */ }
|
87
|
-
|
88
|
-
/** Re-set default cursor for disabled elements. */
|
89
|
-
button[disabled], html input[disabled] { cursor: default; }
|
90
|
-
|
91
|
-
/** Remove inner padding and border in Firefox 4+. */
|
92
|
-
button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }
|
93
|
-
|
94
|
-
/** Address Firefox 4+ setting `line-height` on `input` using `!important` in the UA stylesheet. */
|
95
|
-
input { line-height: normal; }
|
96
|
-
|
97
|
-
/** It's recommended that you don't attempt to style these elements. Firefox's implementation doesn't respect box-sizing, padding, or width. 1. Address box sizing set to `content-box` in IE 8/9/10. 2. Remove excess padding in IE 8/9/10. */
|
98
|
-
input[type="checkbox"], input[type="radio"] { box-sizing: border-box; /* 1 */ padding: 0; /* 2 */ }
|
99
|
-
|
100
|
-
/** Fix the cursor style for Chrome's increment/decrement buttons. For certain `font-size` values of the `input`, it causes the cursor style of the decrement button to change from `default` to `text`. */
|
101
|
-
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { height: auto; }
|
102
|
-
|
103
|
-
/** 1. Address `appearance` set to `searchfield` in Safari and Chrome. 2. Address `box-sizing` set to `border-box` in Safari and Chrome (include `-moz` to future-proof). */
|
104
|
-
input[type="search"] { -webkit-appearance: textfield; /* 1 */ /* 2 */ box-sizing: content-box; }
|
105
|
-
|
106
|
-
/** Remove inner padding and search cancel button in Safari and Chrome on OS X. Safari (but not Chrome) clips the cancel button when the search input has padding (and `textfield` appearance). */
|
107
|
-
input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
|
108
|
-
|
109
|
-
/** Define consistent border, margin, and padding. */
|
110
|
-
fieldset { border: 1px solid #c0c0c0; margin: 0 2px; padding: 0.35em 0.625em 0.75em; }
|
111
|
-
|
112
|
-
/** 1. Correct `color` not being inherited in IE 8/9/10/11. 2. Remove padding so people aren't caught out if they zero out fieldsets. */
|
113
|
-
legend { border: 0; /* 1 */ padding: 0; /* 2 */ }
|
114
|
-
|
115
|
-
/** Remove default vertical scrollbar in IE 8/9/10/11. */
|
116
|
-
textarea { overflow: auto; }
|
117
|
-
|
118
|
-
/** Don't inherit the `font-weight` (applied by a rule above). NOTE: the default cannot safely be changed in Chrome and Safari on OS X. */
|
119
|
-
optgroup { font-weight: bold; }
|
120
|
-
|
121
|
-
/* Tables ========================================================================== */
|
122
|
-
/** Remove most spacing between table cells. */
|
123
|
-
table { border-collapse: collapse; border-spacing: 0; }
|
124
|
-
|
125
|
-
td, th { padding: 0; }
|
126
|
-
|
127
|
-
.highlight table td { padding: 5px; }
|
128
|
-
|
129
|
-
.highlight table pre { margin: 0; }
|
130
|
-
|
131
|
-
.highlight .cm { color: #999988; font-style: italic; }
|
132
|
-
|
133
|
-
.highlight .cp { color: #999999; font-weight: bold; }
|
134
|
-
|
135
|
-
.highlight .c1 { color: #999988; font-style: italic; }
|
136
|
-
|
137
|
-
.highlight .cs { color: #999999; font-weight: bold; font-style: italic; }
|
138
|
-
|
139
|
-
.highlight .c, .highlight .cd { color: #999988; font-style: italic; }
|
140
|
-
|
141
|
-
.highlight .err { color: #a61717; background-color: #e3d2d2; }
|
142
|
-
|
143
|
-
.highlight .gd { color: #000000; background-color: #ffdddd; }
|
144
|
-
|
145
|
-
.highlight .ge { color: #000000; font-style: italic; }
|
146
|
-
|
147
|
-
.highlight .gr { color: #aa0000; }
|
148
|
-
|
149
|
-
.highlight .gh { color: #999999; }
|
150
|
-
|
151
|
-
.highlight .gi { color: #000000; background-color: #ddffdd; }
|
152
|
-
|
153
|
-
.highlight .go { color: #888888; }
|
154
|
-
|
155
|
-
.highlight .gp { color: #555555; }
|
156
|
-
|
157
|
-
.highlight .gs { font-weight: bold; }
|
158
|
-
|
159
|
-
.highlight .gu { color: #aaaaaa; }
|
160
|
-
|
161
|
-
.highlight .gt { color: #aa0000; }
|
162
|
-
|
163
|
-
.highlight .kc { color: #000000; font-weight: bold; }
|
164
|
-
|
165
|
-
.highlight .kd { color: #000000; font-weight: bold; }
|
166
|
-
|
167
|
-
.highlight .kn { color: #000000; font-weight: bold; }
|
168
|
-
|
169
|
-
.highlight .kp { color: #000000; font-weight: bold; }
|
170
|
-
|
171
|
-
.highlight .kr { color: #000000; font-weight: bold; }
|
172
|
-
|
173
|
-
.highlight .kt { color: #445588; font-weight: bold; }
|
174
|
-
|
175
|
-
.highlight .k, .highlight .kv { color: #000000; font-weight: bold; }
|
176
|
-
|
177
|
-
.highlight .mf { color: #009999; }
|
178
|
-
|
179
|
-
.highlight .mh { color: #009999; }
|
180
|
-
|
181
|
-
.highlight .il { color: #009999; }
|
182
|
-
|
183
|
-
.highlight .mi { color: #009999; }
|
184
|
-
|
185
|
-
.highlight .mo { color: #009999; }
|
186
|
-
|
187
|
-
.highlight .m, .highlight .mb, .highlight .mx { color: #009999; }
|
188
|
-
|
189
|
-
.highlight .sb { color: #d14; }
|
190
|
-
|
191
|
-
.highlight .sc { color: #d14; }
|
192
|
-
|
193
|
-
.highlight .sd { color: #d14; }
|
194
|
-
|
195
|
-
.highlight .s2 { color: #d14; }
|
196
|
-
|
197
|
-
.highlight .se { color: #d14; }
|
198
|
-
|
199
|
-
.highlight .sh { color: #d14; }
|
200
|
-
|
201
|
-
.highlight .si { color: #d14; }
|
202
|
-
|
203
|
-
.highlight .sx { color: #d14; }
|
204
|
-
|
205
|
-
.highlight .sr { color: #009926; }
|
206
|
-
|
207
|
-
.highlight .s1 { color: #d14; }
|
208
|
-
|
209
|
-
.highlight .ss { color: #990073; }
|
210
|
-
|
211
|
-
.highlight .s { color: #d14; }
|
212
|
-
|
213
|
-
.highlight .na { color: #008080; }
|
214
|
-
|
215
|
-
.highlight .bp { color: #999999; }
|
216
|
-
|
217
|
-
.highlight .nb { color: #0086B3; }
|
218
|
-
|
219
|
-
.highlight .nc { color: #445588; font-weight: bold; }
|
220
|
-
|
221
|
-
.highlight .no { color: #008080; }
|
222
|
-
|
223
|
-
.highlight .nd { color: #3c5d5d; font-weight: bold; }
|
224
|
-
|
225
|
-
.highlight .ni { color: #800080; }
|
226
|
-
|
227
|
-
.highlight .ne { color: #990000; font-weight: bold; }
|
228
|
-
|
229
|
-
.highlight .nf { color: #990000; font-weight: bold; }
|
230
|
-
|
231
|
-
.highlight .nl { color: #990000; font-weight: bold; }
|
232
|
-
|
233
|
-
.highlight .nn { color: #555555; }
|
234
|
-
|
235
|
-
.highlight .nt { color: #000080; }
|
236
|
-
|
237
|
-
.highlight .vc { color: #008080; }
|
238
|
-
|
239
|
-
.highlight .vg { color: #008080; }
|
240
|
-
|
241
|
-
.highlight .vi { color: #008080; }
|
242
|
-
|
243
|
-
.highlight .nv { color: #008080; }
|
244
|
-
|
245
|
-
.highlight .ow { color: #000000; font-weight: bold; }
|
246
|
-
|
247
|
-
.highlight .o { color: #000000; font-weight: bold; }
|
248
|
-
|
249
|
-
.highlight .w { color: #bbbbbb; }
|
250
|
-
|
251
|
-
.highlight { background-color: #f8f8f8; }
|
252
|
-
|
253
|
-
* { box-sizing: border-box; }
|
254
|
-
|
255
|
-
body { padding: 0; margin: 0; font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.5; color: #606c71; }
|
256
|
-
|
257
|
-
a { color: #1e6bb8; text-decoration: none; }
|
258
|
-
a:hover { text-decoration: underline; }
|
259
|
-
|
260
|
-
.btn { display: inline-block; margin-bottom: 1rem; color: rgba(255, 255, 255, 0.7); background-color: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); border-style: solid; border-width: 1px; border-radius: 0.3rem; transition: color 0.2s, background-color 0.2s, border-color 0.2s; }
|
261
|
-
.btn:hover { color: rgba(255, 255, 255, 0.8); text-decoration: none; background-color: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.3); }
|
262
|
-
.btn + .btn { margin-left: 1rem; }
|
263
|
-
@media screen and (min-width: 64em) { .btn { padding: 0.75rem 1rem; } }
|
264
|
-
@media screen and (min-width: 42em) and (max-width: 64em) { .btn { padding: 0.6rem 0.9rem; font-size: 0.9rem; } }
|
265
|
-
@media screen and (max-width: 42em) { .btn { display: block; width: 100%; padding: 0.75rem; font-size: 0.9rem; }
|
266
|
-
.btn + .btn { margin-top: 1rem; margin-left: 0; } }
|
267
|
-
|
268
|
-
.page-header { color: #fff; text-align: center; background-color: #159957; background-image: linear-gradient(120deg, #155799, #159957); }
|
269
|
-
@media screen and (min-width: 64em) { .page-header { padding: 5rem 6rem; } }
|
270
|
-
@media screen and (min-width: 42em) and (max-width: 64em) { .page-header { padding: 3rem 4rem; } }
|
271
|
-
@media screen and (max-width: 42em) { .page-header { padding: 2rem 1rem; } }
|
272
|
-
|
273
|
-
.project-name { margin-top: 0; margin-bottom: 0.1rem; }
|
274
|
-
@media screen and (min-width: 64em) { .project-name { font-size: 3.25rem; } }
|
275
|
-
@media screen and (min-width: 42em) and (max-width: 64em) { .project-name { font-size: 2.25rem; } }
|
276
|
-
@media screen and (max-width: 42em) { .project-name { font-size: 1.75rem; } }
|
277
|
-
|
278
|
-
.project-tagline { margin-bottom: 2rem; font-weight: normal; opacity: 0.7; }
|
279
|
-
@media screen and (min-width: 64em) { .project-tagline { font-size: 1.25rem; } }
|
280
|
-
@media screen and (min-width: 42em) and (max-width: 64em) { .project-tagline { font-size: 1.15rem; } }
|
281
|
-
@media screen and (max-width: 42em) { .project-tagline { font-size: 1rem; } }
|
282
|
-
|
283
|
-
.main-content { word-wrap: break-word; }
|
284
|
-
.main-content :first-child { margin-top: 0; }
|
285
|
-
@media screen and (min-width: 64em) { .main-content { max-width: 64rem; padding: 2rem 6rem; margin: 0 auto; font-size: 1.1rem; } }
|
286
|
-
@media screen and (min-width: 42em) and (max-width: 64em) { .main-content { padding: 2rem 4rem; font-size: 1.1rem; } }
|
287
|
-
@media screen and (max-width: 42em) { .main-content { padding: 2rem 1rem; font-size: 1rem; } }
|
288
|
-
.main-content img { max-width: 100%; }
|
289
|
-
.main-content h1, .main-content h2, .main-content h3, .main-content h4, .main-content h5, .main-content h6 { margin-top: 2rem; margin-bottom: 1rem; font-weight: normal; color: #159957; }
|
290
|
-
.main-content p { margin-bottom: 1em; }
|
291
|
-
.main-content code { padding: 2px 4px; font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 0.9rem; color: #567482; background-color: #f3f6fa; border-radius: 0.3rem; }
|
292
|
-
.main-content pre { padding: 0.8rem; margin-top: 0; margin-bottom: 1rem; font: 1rem Consolas, "Liberation Mono", Menlo, Courier, monospace; color: #567482; word-wrap: normal; background-color: #f3f6fa; border: solid 1px #dce6f0; border-radius: 0.3rem; }
|
293
|
-
.main-content pre > code { padding: 0; margin: 0; font-size: 0.9rem; color: #567482; word-break: normal; white-space: pre; background: transparent; border: 0; }
|
294
|
-
.main-content .highlight { margin-bottom: 1rem; }
|
295
|
-
.main-content .highlight pre { margin-bottom: 0; word-break: normal; }
|
296
|
-
.main-content .highlight pre, .main-content pre { padding: 0.8rem; overflow: auto; font-size: 0.9rem; line-height: 1.45; border-radius: 0.3rem; -webkit-overflow-scrolling: touch; }
|
297
|
-
.main-content pre code, .main-content pre tt { display: inline; max-width: initial; padding: 0; margin: 0; overflow: initial; line-height: inherit; word-wrap: normal; background-color: transparent; border: 0; }
|
298
|
-
.main-content pre code:before, .main-content pre code:after, .main-content pre tt:before, .main-content pre tt:after { content: normal; }
|
299
|
-
.main-content ul, .main-content ol { margin-top: 0; }
|
300
|
-
.main-content blockquote { padding: 0 1rem; margin-left: 0; color: #819198; border-left: 0.3rem solid #dce6f0; }
|
301
|
-
.main-content blockquote > :first-child { margin-top: 0; }
|
302
|
-
.main-content blockquote > :last-child { margin-bottom: 0; }
|
303
|
-
.main-content table { display: block; width: 100%; overflow: auto; word-break: normal; word-break: keep-all; -webkit-overflow-scrolling: touch; }
|
304
|
-
.main-content table th { font-weight: bold; }
|
305
|
-
.main-content table th, .main-content table td { padding: 0.5rem 1rem; border: 1px solid #e9ebec; }
|
306
|
-
.main-content dl { padding: 0; }
|
307
|
-
.main-content dl dt { padding: 0; margin-top: 1rem; font-size: 1rem; font-weight: bold; }
|
308
|
-
.main-content dl dd { padding: 0; margin-bottom: 1rem; }
|
309
|
-
.main-content hr { height: 2px; padding: 0; margin: 1rem 0; background-color: #eff0f1; border: 0; }
|
310
|
-
|
311
|
-
.site-footer { padding-top: 2rem; margin-top: 2rem; border-top: solid 1px #eff0f1; }
|
312
|
-
@media screen and (min-width: 64em) { .site-footer { font-size: 1rem; } }
|
313
|
-
@media screen and (min-width: 42em) and (max-width: 64em) { .site-footer { font-size: 1rem; } }
|
314
|
-
@media screen and (max-width: 42em) { .site-footer { font-size: 0.9rem; } }
|
315
|
-
|
316
|
-
.site-footer-owner { display: block; font-weight: bold; }
|
317
|
-
|
318
|
-
.site-footer-credits { color: #819198; }
|
1
|
+
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}h1{font-size:2em;margin:0.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace, monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0}input[type="number"]::-webkit-inner-spin-button,input[type="number"]::-webkit-outer-spin-button{height:auto}input[type="search"]{-webkit-appearance:textfield;box-sizing:content-box}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:bold}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}.highlight table td{padding:5px}.highlight table pre{margin:0}.highlight .cm{color:#999988;font-style:italic}.highlight .cp{color:#999999;font-weight:bold}.highlight .c1{color:#999988;font-style:italic}.highlight .cs{color:#999999;font-weight:bold;font-style:italic}.highlight .c,.highlight .cd{color:#999988;font-style:italic}.highlight .err{color:#a61717;background-color:#e3d2d2}.highlight .gd{color:#000000;background-color:#ffdddd}.highlight .ge{color:#000000;font-style:italic}.highlight .gr{color:#aa0000}.highlight .gh{color:#999999}.highlight .gi{color:#000000;background-color:#ddffdd}.highlight .go{color:#888888}.highlight .gp{color:#555555}.highlight .gs{font-weight:bold}.highlight .gu{color:#aaaaaa}.highlight .gt{color:#aa0000}.highlight .kc{color:#000000;font-weight:bold}.highlight .kd{color:#000000;font-weight:bold}.highlight .kn{color:#000000;font-weight:bold}.highlight .kp{color:#000000;font-weight:bold}.highlight .kr{color:#000000;font-weight:bold}.highlight .kt{color:#445588;font-weight:bold}.highlight .k,.highlight .kv{color:#000000;font-weight:bold}.highlight .mf{color:#009999}.highlight .mh{color:#009999}.highlight .il{color:#009999}.highlight .mi{color:#009999}.highlight .mo{color:#009999}.highlight .m,.highlight .mb,.highlight .mx{color:#009999}.highlight .sb{color:#d14}.highlight .sc{color:#d14}.highlight .sd{color:#d14}.highlight .s2{color:#d14}.highlight .se{color:#d14}.highlight .sh{color:#d14}.highlight .si{color:#d14}.highlight .sx{color:#d14}.highlight .sr{color:#009926}.highlight .s1{color:#d14}.highlight .ss{color:#990073}.highlight .s{color:#d14}.highlight .na{color:#008080}.highlight .bp{color:#999999}.highlight .nb{color:#0086B3}.highlight .nc{color:#445588;font-weight:bold}.highlight .no{color:#008080}.highlight .nd{color:#3c5d5d;font-weight:bold}.highlight .ni{color:#800080}.highlight .ne{color:#990000;font-weight:bold}.highlight .nf{color:#990000;font-weight:bold}.highlight .nl{color:#990000;font-weight:bold}.highlight .nn{color:#555555}.highlight .nt{color:#000080}.highlight .vc{color:#008080}.highlight .vg{color:#008080}.highlight .vi{color:#008080}.highlight .nv{color:#008080}.highlight .ow{color:#000000;font-weight:bold}.highlight .o{color:#000000;font-weight:bold}.highlight .w{color:#bbbbbb}.highlight{background-color:#f8f8f8}*{box-sizing:border-box}body{padding:0;margin:0;font-family:"Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;font-size:16px;line-height:1.5;color:#606c71}a{color:#1e6bb8;text-decoration:none}a:hover{text-decoration:underline}.btn{display:inline-block;margin-bottom:1rem;color:rgba(255,255,255,0.7);background-color:rgba(255,255,255,0.08);border-color:rgba(255,255,255,0.2);border-style:solid;border-width:1px;border-radius:0.3rem;transition:color 0.2s, background-color 0.2s, border-color 0.2s}.btn:hover{color:rgba(255,255,255,0.8);text-decoration:none;background-color:rgba(255,255,255,0.2);border-color:rgba(255,255,255,0.3)}.btn+.btn{margin-left:1rem}@media screen and (min-width: 64em){.btn{padding:0.75rem 1rem}}@media screen and (min-width: 42em) and (max-width: 64em){.btn{padding:0.6rem 0.9rem;font-size:0.9rem}}@media screen and (max-width: 42em){.btn{display:block;width:100%;padding:0.75rem;font-size:0.9rem}.btn+.btn{margin-top:1rem;margin-left:0}}.page-header{color:#fff;text-align:center;background-color:#159957;background-image:linear-gradient(120deg, #155799, #159957)}@media screen and (min-width: 64em){.page-header{padding:5rem 6rem}}@media screen and (min-width: 42em) and (max-width: 64em){.page-header{padding:3rem 4rem}}@media screen and (max-width: 42em){.page-header{padding:2rem 1rem}}.project-name{margin-top:0;margin-bottom:0.1rem}@media screen and (min-width: 64em){.project-name{font-size:3.25rem}}@media screen and (min-width: 42em) and (max-width: 64em){.project-name{font-size:2.25rem}}@media screen and (max-width: 42em){.project-name{font-size:1.75rem}}.project-tagline{margin-bottom:2rem;font-weight:normal;opacity:0.7}@media screen and (min-width: 64em){.project-tagline{font-size:1.25rem}}@media screen and (min-width: 42em) and (max-width: 64em){.project-tagline{font-size:1.15rem}}@media screen and (max-width: 42em){.project-tagline{font-size:1rem}}.main-content{word-wrap:break-word}.main-content :first-child{margin-top:0}@media screen and (min-width: 64em){.main-content{max-width:64rem;padding:2rem 6rem;margin:0 auto;font-size:1.1rem}}@media screen and (min-width: 42em) and (max-width: 64em){.main-content{padding:2rem 4rem;font-size:1.1rem}}@media screen and (max-width: 42em){.main-content{padding:2rem 1rem;font-size:1rem}}.main-content img{max-width:100%}.main-content h1,.main-content h2,.main-content h3,.main-content h4,.main-content h5,.main-content h6{margin-top:2rem;margin-bottom:1rem;font-weight:normal;color:#159957}.main-content p{margin-bottom:1em}.main-content code{padding:2px 4px;font-family:Consolas, "Liberation Mono", Menlo, Courier, monospace;font-size:0.9rem;color:#567482;background-color:#f3f6fa;border-radius:0.3rem}.main-content pre{padding:0.8rem;margin-top:0;margin-bottom:1rem;font:1rem Consolas, "Liberation Mono", Menlo, Courier, monospace;color:#567482;word-wrap:normal;background-color:#f3f6fa;border:solid 1px #dce6f0;border-radius:0.3rem}.main-content pre>code{padding:0;margin:0;font-size:0.9rem;color:#567482;word-break:normal;white-space:pre;background:transparent;border:0}.main-content .highlight{margin-bottom:1rem}.main-content .highlight pre{margin-bottom:0;word-break:normal}.main-content .highlight pre,.main-content pre{padding:0.8rem;overflow:auto;font-size:0.9rem;line-height:1.45;border-radius:0.3rem;-webkit-overflow-scrolling:touch}.main-content pre code,.main-content pre tt{display:inline;max-width:initial;padding:0;margin:0;overflow:initial;line-height:inherit;word-wrap:normal;background-color:transparent;border:0}.main-content pre code:before,.main-content pre code:after,.main-content pre tt:before,.main-content pre tt:after{content:normal}.main-content ul,.main-content ol{margin-top:0}.main-content blockquote{padding:0 1rem;margin-left:0;color:#819198;border-left:0.3rem solid #dce6f0}.main-content blockquote>:first-child{margin-top:0}.main-content blockquote>:last-child{margin-bottom:0}.main-content table{display:block;width:100%;overflow:auto;word-break:normal;word-break:keep-all;-webkit-overflow-scrolling:touch}.main-content table th{font-weight:bold}.main-content table th,.main-content table td{padding:0.5rem 1rem;border:1px solid #e9ebec}.main-content dl{padding:0}.main-content dl dt{padding:0;margin-top:1rem;font-size:1rem;font-weight:bold}.main-content dl dd{padding:0;margin-bottom:1rem}.main-content hr{height:2px;padding:0;margin:1rem 0;background-color:#eff0f1;border:0}.site-footer{padding-top:2rem;margin-top:2rem;border-top:solid 1px #eff0f1}@media screen and (min-width: 64em){.site-footer{font-size:1rem}}@media screen and (min-width: 42em) and (max-width: 64em){.site-footer{font-size:1rem}}@media screen and (max-width: 42em){.site-footer{font-size:0.9rem}}.site-footer-owner{display:block;font-weight:bold}.site-footer-credits{color:#819198}
|
@@ -0,0 +1,145 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en-us">
|
3
|
+
<head>
|
4
|
+
<meta charset="UTF-8"/>
|
5
|
+
<title>How to Run - 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=7607561e35662be7dca0c5bdcc529f14f576044b"/>
|
11
|
+
<link rel="stylesheet" href="assets/css/pace.css" />
|
12
|
+
<script src="assets/js/pace.min.js"></script>
|
13
|
+
|
14
|
+
<link rel="apple-touch-icon" sizes="180x180" href="/assets/favicon/apple-touch-icon.png"/>
|
15
|
+
<link rel="icon" type="image/png" sizes="32x32" href="/assets/favicon/favicon-32x32.png"/>
|
16
|
+
<link rel="icon" type="image/png" sizes="16x16" href="/assets/favicon/favicon-16x16.png"/>
|
17
|
+
<link rel="manifest" href="/assets/favicon/manifest.json"/>
|
18
|
+
<link rel="mask-icon" href="/assets/favicon/safari-pinned-tab.svg" color="#5bbad5"/>
|
19
|
+
<!--
|
20
|
+
<meta name="theme-color" content="#ffffff">
|
21
|
+
-->
|
22
|
+
</head>
|
23
|
+
<body>
|
24
|
+
|
25
|
+
<section class="page-header">
|
26
|
+
<h1 class="project-name">Play Rock Paper Scissors Game</h1>
|
27
|
+
<h2 class="project-tagline">A Ruby Programmed Rock Paper Scissors Game</h2>
|
28
|
+
|
29
|
+
<a href="http://github.com/bag3318/RockPaperScissors" class="btn">View on GitHub</a>
|
30
|
+
<a href="http://github.com/bag3318/RockPaperScissors/issues" class="btn">Report a Bug</a>
|
31
|
+
|
32
|
+
|
33
|
+
<a href="http://github.com/bag3318/RockPaperScissors/zipball/gh-pages" class="btn">Download .zip</a>
|
34
|
+
<a href="http://github.com/bag3318/RockPaperScissors/tarball/gh-pages" class="btn">Download .tar.gz</a>
|
35
|
+
|
36
|
+
<br/>
|
37
|
+
|
38
|
+
<a href="#site-nav" class="btn">Site Nav</a>
|
39
|
+
|
40
|
+
|
41
|
+
<a href="./" class="btn">Home</a>
|
42
|
+
|
43
|
+
</section>
|
44
|
+
<section class="main-content">
|
45
|
+
|
46
|
+
|
47
|
+
<h1 id="rock-paper-scissors">Rock Paper Scissors</h1>
|
48
|
+
|
49
|
+
<p><strong>Table of Contents</strong></p>
|
50
|
+
|
51
|
+
<ul>
|
52
|
+
<li><a href="#rock-paper-scissors">Rock Paper Scissors</a>
|
53
|
+
<ul>
|
54
|
+
<li><a href="#how-to-run-and-install">How to Run and Install</a>
|
55
|
+
<ul>
|
56
|
+
<li><a href="#install-and-run-on-mac">Install and Run on Mac</a>
|
57
|
+
<ul>
|
58
|
+
<li><a href="#running">Running</a></li>
|
59
|
+
<li><a href="#uninstalling">Uninstalling</a></li>
|
60
|
+
</ul>
|
61
|
+
</li>
|
62
|
+
<li><a href="#install-and-run-on-windows">Install and Run on Windows</a>
|
63
|
+
<ul>
|
64
|
+
<li><a href="#running-1">Running</a></li>
|
65
|
+
</ul>
|
66
|
+
</li>
|
67
|
+
</ul>
|
68
|
+
</li>
|
69
|
+
<li><a href="#links">Links</a></li>
|
70
|
+
</ul>
|
71
|
+
</li>
|
72
|
+
</ul>
|
73
|
+
|
74
|
+
<h2 id="how-to-run-and-install">How to Run and Install</h2>
|
75
|
+
|
76
|
+
<h3 id="install-and-run-on-mac">Install and Run on Mac</h3>
|
77
|
+
|
78
|
+
<ol>
|
79
|
+
<li>Run the <code class="highlighter-rouge">rps.bash</code> file (located in the <code class="highlighter-rouge">exec</code> folder) with the <code class="highlighter-rouge">Terminal</code></li>
|
80
|
+
</ol>
|
81
|
+
|
82
|
+
<h4 id="running">Running</h4>
|
83
|
+
|
84
|
+
<ol>
|
85
|
+
<li>Open the <code class="highlighter-rouge">Terminal</code></li>
|
86
|
+
<li>Type in: <code class="highlighter-rouge">rps</code>, or <code class="highlighter-rouge">PlayRockPaperScissorsGame</code></li>
|
87
|
+
<li>Hit <kbd>return</kbd></li>
|
88
|
+
</ol>
|
89
|
+
|
90
|
+
<h4 id="uninstalling">Uninstalling</h4>
|
91
|
+
|
92
|
+
<ol>
|
93
|
+
<li>Run the <code class="highlighter-rouge">uninstaller.sh</code> file (located in the <code class="highlighter-rouge">exec</code> folder) with the <code class="highlighter-rouge">Terminal</code></li>
|
94
|
+
</ol>
|
95
|
+
|
96
|
+
<h3 id="install-and-run-on-windows">Install and Run on Windows</h3>
|
97
|
+
|
98
|
+
<ol>
|
99
|
+
<li>Download and install Ruby for Windows (if not already installed); download <a href="https://rubyinstaller.org/downloads/">here</a></li>
|
100
|
+
<li>Open <code class="highlighter-rouge">cmd</code> and type in: <code class="highlighter-rouge">gem install PlayRockPaperScissorsGame</code>; hit <kbd>enter</kbd></li>
|
101
|
+
<li>Run the <code class="highlighter-rouge">rps.bat</code> file (located in the <code class="highlighter-rouge">exec</code> folder)</li>
|
102
|
+
</ol>
|
103
|
+
|
104
|
+
<h4 id="running-1">Running</h4>
|
105
|
+
|
106
|
+
<ol>
|
107
|
+
<li>Open the <code class="highlighter-rouge">rps.bat</code> file (located in the <code class="highlighter-rouge">exec</code> folder)
|
108
|
+
<ul>
|
109
|
+
<li>Another option: type in <code class="highlighter-rouge">rps</code> or <code class="highlighter-rouge">PlayRockPaperScissorsGame</code> in the <code class="highlighter-rouge">Command Prompt</code>; hit <kbd>enter</kbd></li>
|
110
|
+
</ul>
|
111
|
+
</li>
|
112
|
+
</ol>
|
113
|
+
|
114
|
+
<h2 id="links">Links</h2>
|
115
|
+
|
116
|
+
<ul>
|
117
|
+
<li><a href="https://rubygems.org/gems/PlayRockPaperScissorsGame">Ruby Gems Page</a></li>
|
118
|
+
<li><a href="https://github.com/bag3318/RockPaperScissors">Source Code</a></li>
|
119
|
+
</ul>
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
<footer class="site-footer">
|
124
|
+
|
125
|
+
<h2 id="site-nav">Site Nav</h2>
|
126
|
+
<table>
|
127
|
+
<tr>
|
128
|
+
<td><a href="./">Home</a></td>
|
129
|
+
<td><a href="how_to_run">How to Run</a></td>
|
130
|
+
<td><a href="Code">Master Code</a></td>
|
131
|
+
<td><a href="Comparing_Code">Comparing Code</a></td>
|
132
|
+
<td><a href="Testing">How to Test</a></td>
|
133
|
+
<td><a href="How_to_Build">How to Build</a></td>
|
134
|
+
<td><a href="about">About</a></td>
|
135
|
+
</tr>
|
136
|
+
</table>
|
137
|
+
<br/>
|
138
|
+
<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>
|
139
|
+
|
140
|
+
</footer>
|
141
|
+
</section>
|
142
|
+
|
143
|
+
|
144
|
+
</body>
|
145
|
+
</html>
|
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=7607561e35662be7dca0c5bdcc529f14f576044b"/>
|
11
11
|
<link rel="stylesheet" href="assets/css/pace.css" />
|
12
12
|
<script src="assets/js/pace.min.js"></script>
|
13
13
|
|
@@ -41,81 +41,11 @@
|
|
41
41
|
</section>
|
42
42
|
<section class="main-content">
|
43
43
|
|
44
|
-
|
45
|
-
<h1 id="rock-paper-scissors">Rock Paper Scissors</h1>
|
46
|
-
|
47
|
-
<p><strong>Table of Contents</strong></p>
|
48
|
-
|
49
|
-
<ul>
|
50
|
-
<li><a href="#rock-paper-scissors">Rock Paper Scissors</a>
|
51
|
-
<ul>
|
52
|
-
<li><a href="#how-to-run-and-install">How to Run and Install</a>
|
53
|
-
<ul>
|
54
|
-
<li><a href="#install-and-run-on-mac">Install and Run on Mac</a>
|
55
|
-
<ul>
|
56
|
-
<li><a href="#running">Running</a></li>
|
57
|
-
<li><a href="#uninstalling">Uninstalling</a></li>
|
58
|
-
</ul>
|
59
|
-
</li>
|
60
|
-
<li><a href="#install-and-run-on-windows">Install and Run on Windows</a>
|
61
|
-
<ul>
|
62
|
-
<li><a href="#running-1">Running</a></li>
|
63
|
-
</ul>
|
64
|
-
</li>
|
65
|
-
</ul>
|
66
|
-
</li>
|
67
|
-
<li><a href="#links">Links</a></li>
|
68
|
-
</ul>
|
69
|
-
</li>
|
70
|
-
</ul>
|
71
|
-
|
72
|
-
<h2 id="how-to-run-and-install">How to Run and Install</h2>
|
73
|
-
|
74
|
-
<h3 id="install-and-run-on-mac">Install and Run on Mac</h3>
|
75
|
-
|
76
|
-
<ol>
|
77
|
-
<li>Run the <code class="highlighter-rouge">rps.bash</code> file (located in the <code class="highlighter-rouge">exec</code> folder) with the <code class="highlighter-rouge">Terminal</code></li>
|
78
|
-
</ol>
|
79
|
-
|
80
|
-
<h4 id="running">Running</h4>
|
81
|
-
|
82
|
-
<ol>
|
83
|
-
<li>Open the <code class="highlighter-rouge">Terminal</code></li>
|
84
|
-
<li>Type in: <code class="highlighter-rouge">rps</code>, or <code class="highlighter-rouge">PlayRockPaperScissorsGame</code></li>
|
85
|
-
<li>Hit <kbd>return</kbd></li>
|
86
|
-
</ol>
|
87
|
-
|
88
|
-
<h4 id="uninstalling">Uninstalling</h4>
|
89
|
-
|
90
|
-
<ol>
|
91
|
-
<li>Run the <code class="highlighter-rouge">uninstaller.sh</code> file (located in the <code class="highlighter-rouge">exec</code> folder) with the <code class="highlighter-rouge">Terminal</code></li>
|
92
|
-
</ol>
|
93
|
-
|
94
|
-
<h3 id="install-and-run-on-windows">Install and Run on Windows</h3>
|
95
|
-
|
96
|
-
<ol>
|
97
|
-
<li>Download and install Ruby for Windows (if not already installed); download <a href="https://rubyinstaller.org/downloads/">here</a></li>
|
98
|
-
<li>Open <code class="highlighter-rouge">cmd</code> and type in: <code class="highlighter-rouge">gem install PlayRockPaperScissorsGame</code>; hit <kbd>enter</kbd></li>
|
99
|
-
<li>Run the <code class="highlighter-rouge">rps.bat</code> file (located in the <code class="highlighter-rouge">exec</code> folder)</li>
|
100
|
-
</ol>
|
101
|
-
|
102
|
-
<h4 id="running-1">Running</h4>
|
103
|
-
|
104
|
-
<ol>
|
105
|
-
<li>Open the <code class="highlighter-rouge">rps.bat</code> file (located in the <code class="highlighter-rouge">exec</code> folder)
|
106
|
-
<ul>
|
107
|
-
<li>Another option: type in <code class="highlighter-rouge">rps</code> or <code class="highlighter-rouge">PlayRockPaperScissorsGame</code> in the <code class="highlighter-rouge">Command Prompt</code>; hit <kbd>enter</kbd></li>
|
108
|
-
</ul>
|
109
|
-
</li>
|
110
|
-
</ol>
|
111
|
-
|
112
|
-
<h2 id="links">Links</h2>
|
44
|
+
<h1 id="play-rock-paper-scissors-game">Play Rock Paper Scissors Game</h1>
|
113
45
|
|
114
|
-
<
|
115
|
-
<li><a href="https://rubygems.org/gems/PlayRockPaperScissorsGame">Ruby Gems Page</a></li>
|
116
|
-
<li><a href="https://github.com/bag3318/RockPaperScissors">Source Code</a></li>
|
117
|
-
</ul>
|
46
|
+
<p>My <code class="highlighter-rouge">Play Rock Paper Scissors Game</code> game is programmed in the Ruby programming language.</p>
|
118
47
|
|
48
|
+
<p>I hope you will enjoy it! :]</p>
|
119
49
|
|
120
50
|
|
121
51
|
<footer class="site-footer">
|
@@ -124,6 +54,7 @@
|
|
124
54
|
<table>
|
125
55
|
<tr>
|
126
56
|
<td><a href="./">Home</a></td>
|
57
|
+
<td><a href="how_to_run">How to Run</a></td>
|
127
58
|
<td><a href="Code">Master Code</a></td>
|
128
59
|
<td><a href="Comparing_Code">Comparing Code</a></td>
|
129
60
|
<td><a href="Testing">How to Test</a></td>
|
data/docs/index.md
CHANGED
@@ -1,55 +1,11 @@
|
|
1
1
|
---
|
2
2
|
layout: default
|
3
3
|
title: Play Rock Paper Scissors Game - Home
|
4
|
+
permalink: /index.html
|
4
5
|
---
|
5
6
|
|
6
|
-
|
7
|
+
# Play Rock Paper Scissors Game
|
7
8
|
|
8
|
-
Rock Paper Scissors
|
9
|
-
===================
|
9
|
+
My `Play Rock Paper Scissors Game` game is programmed in the Ruby programming language.
|
10
10
|
|
11
|
-
|
12
|
-
|
13
|
-
- [Rock Paper Scissors](#rock-paper-scissors)
|
14
|
-
- [How to Run and Install](#how-to-run-and-install)
|
15
|
-
- [Install and Run on Mac](#install-and-run-on-mac)
|
16
|
-
- [Running](#running)
|
17
|
-
- [Uninstalling](#uninstalling)
|
18
|
-
- [Install and Run on Windows](#install-and-run-on-windows)
|
19
|
-
- [Running](#running-1)
|
20
|
-
- [Links](#links)
|
21
|
-
|
22
|
-
How to Run and Install
|
23
|
-
----------------------
|
24
|
-
|
25
|
-
### Install and Run on Mac
|
26
|
-
|
27
|
-
1. Run the `rps.bash` file (located in the `exec` folder) with the `Terminal`
|
28
|
-
|
29
|
-
#### Running
|
30
|
-
|
31
|
-
1. Open the `Terminal`
|
32
|
-
2. Type in: `rps`, or `PlayRockPaperScissorsGame`
|
33
|
-
3. Hit <kbd>return</kbd>
|
34
|
-
|
35
|
-
#### Uninstalling
|
36
|
-
|
37
|
-
1. Run the `uninstaller.sh` file (located in the `exec` folder) with the `Terminal`
|
38
|
-
|
39
|
-
### Install and Run on Windows
|
40
|
-
|
41
|
-
1. Download and install Ruby for Windows (if not already installed); download [here](https://rubyinstaller.org/downloads/)
|
42
|
-
2. Open `cmd` and type in: `gem install PlayRockPaperScissorsGame`; hit <kbd>enter</kbd>
|
43
|
-
3. Run the `rps.bat` file (located in the `exec` folder)
|
44
|
-
|
45
|
-
#### Running
|
46
|
-
|
47
|
-
1. Open the `rps.bat` file (located in the `exec` folder)
|
48
|
-
* Another option: type in `rps` or `PlayRockPaperScissorsGame` in the `Command Prompt`; hit <kbd>enter</kbd>
|
49
|
-
|
50
|
-
## Links
|
51
|
-
|
52
|
-
+ [Ruby Gems Page](https://rubygems.org/gems/PlayRockPaperScissorsGame)
|
53
|
-
- [Source Code](https://github.com/bag3318/RockPaperScissors)
|
54
|
-
|
55
|
-
[//]: # (end)
|
11
|
+
I hope you will enjoy it! :\]
|
data/lib/rps/version.rb
CHANGED
data/rps.gemspec
CHANGED
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.7.
|
4
|
+
version: 2.7.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bag3318
|
@@ -126,6 +126,7 @@ files:
|
|
126
126
|
- docs/Copying.md
|
127
127
|
- docs/Gemfile
|
128
128
|
- docs/How_to_Build.md
|
129
|
+
- docs/How_to_Run.md
|
129
130
|
- docs/LICENSE
|
130
131
|
- docs/Testing.md
|
131
132
|
- docs/_config.yml
|
@@ -154,7 +155,7 @@ files:
|
|
154
155
|
- docs/_site/assets/favicons/mstile-150x150.png
|
155
156
|
- docs/_site/assets/favicons/safari-pinned-tab.svg
|
156
157
|
- docs/_site/assets/js/pace.min.js
|
157
|
-
- docs/_site/
|
158
|
+
- docs/_site/how_to_run.html
|
158
159
|
- docs/_site/index.html
|
159
160
|
- docs/_site/script/bootstrap
|
160
161
|
- docs/_site/script/cibuild
|
metadata.gz.sig
CHANGED
Binary file
|
data/docs/_site/copying.html
DELETED
@@ -1,110 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html lang="en-us">
|
3
|
-
<head>
|
4
|
-
<meta charset="UTF-8"/>
|
5
|
-
<title>Copying - 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=b80b8706023c943b65047344d0e7d355d41936f8"/>
|
11
|
-
<link rel="stylesheet" href="assets/css/pace.css" />
|
12
|
-
<script src="assets/js/pace.min.js"></script>
|
13
|
-
|
14
|
-
<link rel="apple-touch-icon" sizes="180x180" href="/assets/favicon/apple-touch-icon.png"/>
|
15
|
-
<link rel="icon" type="image/png" sizes="32x32" href="/assets/favicon/favicon-32x32.png"/>
|
16
|
-
<link rel="icon" type="image/png" sizes="16x16" href="/assets/favicon/favicon-16x16.png"/>
|
17
|
-
<link rel="manifest" href="/assets/favicon/manifest.json"/>
|
18
|
-
<link rel="mask-icon" href="/assets/favicon/safari-pinned-tab.svg" color="#5bbad5"/>
|
19
|
-
<!--
|
20
|
-
<meta name="theme-color" content="#ffffff">
|
21
|
-
-->
|
22
|
-
</head>
|
23
|
-
<body>
|
24
|
-
|
25
|
-
<section class="page-header">
|
26
|
-
<h1 class="project-name">Play Rock Paper Scissors Game</h1>
|
27
|
-
<h2 class="project-tagline">A Ruby Programmed Rock Paper Scissors Game</h2>
|
28
|
-
|
29
|
-
<a href="http://github.com/bag3318/RockPaperScissors" class="btn">View on GitHub</a>
|
30
|
-
<a href="http://github.com/bag3318/RockPaperScissors/issues" class="btn">Report a Bug</a>
|
31
|
-
|
32
|
-
|
33
|
-
<a href="http://github.com/bag3318/RockPaperScissors/zipball/gh-pages" class="btn">Download .zip</a>
|
34
|
-
<a href="http://github.com/bag3318/RockPaperScissors/tarball/gh-pages" class="btn">Download .tar.gz</a>
|
35
|
-
|
36
|
-
<br/>
|
37
|
-
|
38
|
-
<a href="#site-nav" class="btn">Site Nav</a>
|
39
|
-
|
40
|
-
|
41
|
-
<a href="./" class="btn">Home</a>
|
42
|
-
|
43
|
-
</section>
|
44
|
-
<section class="main-content">
|
45
|
-
|
46
|
-
<h1 id="rules-for-copying">Rules for Copying</h1>
|
47
|
-
|
48
|
-
<p>Since this project has an <a href="https://en.wikipedia.org/wiki/MIT_License">MIT</a>, one will be allowed to copy the code.
|
49
|
-
However, one must follow this main rule:</p>
|
50
|
-
|
51
|
-
<ul>
|
52
|
-
<li><strong>Change the code in some way</strong></li>
|
53
|
-
</ul>
|
54
|
-
|
55
|
-
<p>The above rule means that you must change any part of the code by physically adding or removing something from it.</p>
|
56
|
-
|
57
|
-
<p><strong>This does not include adding a <kbd>space</kbd> or a <kbd>carriage return (enter/return)</kbd></strong></p>
|
58
|
-
|
59
|
-
<p><strong>The best way to follow the above rule is to add or remove a comment from the code</strong>.</p>
|
60
|
-
|
61
|
-
<p>Ex.</p>
|
62
|
-
|
63
|
-
<h2 id="before">Before</h2>
|
64
|
-
|
65
|
-
<div class="language-ruby highlighter-rouge"><pre class="highlight"><code><span class="k">module</span> <span class="nn">Constants</span>
|
66
|
-
<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>
|
67
|
-
<span class="s1">'p'</span> <span class="o">=></span> <span class="ss">:PAPER</span> <span class="p">,</span>
|
68
|
-
<span class="s1">'r'</span> <span class="o">=></span> <span class="ss">:ROCK</span> <span class="p">,</span>
|
69
|
-
<span class="s1">'s'</span> <span class="o">=></span> <span class="ss">:SCISSORS</span>
|
70
|
-
<span class="p">}</span>
|
71
|
-
<span class="c1"># ..... </span>
|
72
|
-
</code></pre>
|
73
|
-
</div>
|
74
|
-
|
75
|
-
<h2 id="after">After</h2>
|
76
|
-
|
77
|
-
<div class="language-ruby highlighter-rouge"><pre class="highlight"><code><span class="k">module</span> <span class="nn">Constants</span>
|
78
|
-
<span class="no">NTRY_TO_SYM</span> <span class="o">=</span> <span class="p">{</span>
|
79
|
-
<span class="s1">'p'</span> <span class="o">=></span> <span class="ss">:PAPER</span> <span class="p">,</span>
|
80
|
-
<span class="s1">'r'</span> <span class="o">=></span> <span class="ss">:ROCK</span> <span class="p">,</span>
|
81
|
-
<span class="s1">'s'</span> <span class="o">=></span> <span class="ss">:SCISSORS</span>
|
82
|
-
<span class="p">}</span>
|
83
|
-
<span class="c1"># .....</span>
|
84
|
-
|
85
|
-
</code></pre>
|
86
|
-
</div>
|
87
|
-
|
88
|
-
|
89
|
-
<footer class="site-footer">
|
90
|
-
|
91
|
-
<h2 id="site-nav">Site Nav</h2>
|
92
|
-
<table>
|
93
|
-
<tr>
|
94
|
-
<td><a href="./">Home</a></td>
|
95
|
-
<td><a href="Code">Master Code</a></td>
|
96
|
-
<td><a href="Comparing_Code">Comparing Code</a></td>
|
97
|
-
<td><a href="Testing">How to Test</a></td>
|
98
|
-
<td><a href="How_to_Build">How to Build</a></td>
|
99
|
-
<td><a href="about">About</a></td>
|
100
|
-
</tr>
|
101
|
-
</table>
|
102
|
-
<br/>
|
103
|
-
<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>
|
104
|
-
|
105
|
-
</footer>
|
106
|
-
</section>
|
107
|
-
|
108
|
-
|
109
|
-
</body>
|
110
|
-
</html>
|