PlayRockPaperScissorsGame 2.4.1 → 2.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/docs/Code.md +4 -4
- data/docs/_site/CODE_OF_CONDUCT.html +2 -2
- data/docs/_site/CONTRIBUTING.html +2 -2
- data/docs/_site/Code.html +6 -6
- data/docs/_site/How_to_Build.html +2 -2
- data/docs/_site/Testing.html +2 -2
- data/docs/_site/index.html +2 -2
- data/lib/Constants.rb +1 -1
- data/lib/rps/version.rb +1 -1
- data/rps.gemspec +1 -1
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2bd2a920f9e72b53a1c413b2834a0da51c3a0bfb
|
4
|
+
data.tar.gz: 83f5d324eaa90420a374d6e8c17f7c3ccc2112d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 648093e3e61fe0d27e6ebd924995ef86b8787d05aa8aaf2f3f160817719097755c308d524db39d35d2f63de688e746f0783bf191280299794888b9b747d48ee4
|
7
|
+
data.tar.gz: 1fd57169f46effc2eb54ab1e81c5970ff541b9d4b7800f62d06294863cf39e14e8ffcb4189e2f28c166f296de9892190e2da69d1f8484bdde4f29069c900d61d
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/docs/Code.md
CHANGED
@@ -29,13 +29,13 @@ __`% rps`__
|
|
29
29
|
class PlayRockPaperScissorsGame # define master class
|
30
30
|
|
31
31
|
module RockPaperScissors
|
32
|
-
VERSION = "2.4.
|
32
|
+
VERSION = "2.4.2" # define version constant
|
33
33
|
end
|
34
34
|
|
35
35
|
# intiate the colorize gem
|
36
36
|
require "colorized_string"
|
37
|
-
ColorizedString.colors # colors; ex: red, green, blue
|
38
|
-
ColorizedString.modes # modes; ex: bold, italic, underline
|
37
|
+
ColorizedString.colors # import colors; ex: red, green, blue
|
38
|
+
ColorizedString.modes # import modes; ex: bold, italic, underline
|
39
39
|
|
40
40
|
module Constants
|
41
41
|
NTRY_TO_SYM = { # define constants from an entry to a symbol class
|
@@ -51,7 +51,7 @@ class PlayRockPaperScissorsGame # define master class
|
|
51
51
|
[:PAPER , :ROCK],
|
52
52
|
[:ROCK , :SCISSORS]
|
53
53
|
]
|
54
|
-
LOSERS = WINNERS.map { |
|
54
|
+
LOSERS = WINNERS.map { |pc,cc| [cc,pc] } # this will take the original WINNERS array and flip the symbols, thus returning a loss for the user/player
|
55
55
|
INIT_STRINGS = [
|
56
56
|
ColorizedString["You are about to enter a rock-paper-scissors best of 3 match."].colorize(:green),
|
57
57
|
ColorizedString["Press the return/enter key to continue..."].colorize(:green),
|
@@ -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=008b8e183e063f2ccf825af250fff5c3b2887057">
|
11
11
|
</head>
|
12
12
|
<body>
|
13
13
|
<section class="page-header">
|
@@ -15,7 +15,7 @@
|
|
15
15
|
<h2 class="project-tagline">A Ruby Programmed Rock Paper Scissors Game</h2>
|
16
16
|
|
17
17
|
<a href="http://github.com/bag3318/RockPaperScissors" class="btn">View on GitHub</a>
|
18
|
-
<a href="" class="btn">Report a Bug</a>
|
18
|
+
<a href="http://github.com/bag3318/RockPaperScissors/issues" class="btn">Report a Bug</a>
|
19
19
|
|
20
20
|
|
21
21
|
<a href="http://github.com/bag3318/RockPaperScissors/zipball/gh-pages" class="btn">Download .zip</a>
|
@@ -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=008b8e183e063f2ccf825af250fff5c3b2887057">
|
11
11
|
</head>
|
12
12
|
<body>
|
13
13
|
<section class="page-header">
|
@@ -15,7 +15,7 @@
|
|
15
15
|
<h2 class="project-tagline">A Ruby Programmed Rock Paper Scissors Game</h2>
|
16
16
|
|
17
17
|
<a href="http://github.com/bag3318/RockPaperScissors" class="btn">View on GitHub</a>
|
18
|
-
<a href="" class="btn">Report a Bug</a>
|
18
|
+
<a href="http://github.com/bag3318/RockPaperScissors/issues" class="btn">Report a Bug</a>
|
19
19
|
|
20
20
|
|
21
21
|
<a href="http://github.com/bag3318/RockPaperScissors/zipball/gh-pages" class="btn">Download .zip</a>
|
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=008b8e183e063f2ccf825af250fff5c3b2887057">
|
11
11
|
</head>
|
12
12
|
<body>
|
13
13
|
<section class="page-header">
|
@@ -15,7 +15,7 @@
|
|
15
15
|
<h2 class="project-tagline">A Ruby Programmed Rock Paper Scissors Game</h2>
|
16
16
|
|
17
17
|
<a href="http://github.com/bag3318/RockPaperScissors" class="btn">View on GitHub</a>
|
18
|
-
<a href="" class="btn">Report a Bug</a>
|
18
|
+
<a href="http://github.com/bag3318/RockPaperScissors/issues" class="btn">Report a Bug</a>
|
19
19
|
|
20
20
|
|
21
21
|
<a href="http://github.com/bag3318/RockPaperScissors/zipball/gh-pages" class="btn">Download .zip</a>
|
@@ -52,13 +52,13 @@
|
|
52
52
|
<span class="k">class</span> <span class="nc">PlayRockPaperScissorsGame</span> <span class="c1"># define master class</span>
|
53
53
|
|
54
54
|
<span class="k">module</span> <span class="nn">RockPaperScissors</span>
|
55
|
-
<span class="no">VERSION</span> <span class="o">=</span> <span class="s2">"2.4.
|
55
|
+
<span class="no">VERSION</span> <span class="o">=</span> <span class="s2">"2.4.2"</span> <span class="c1"># define version constant</span>
|
56
56
|
<span class="k">end</span>
|
57
57
|
|
58
58
|
<span class="c1"># intiate the colorize gem</span>
|
59
59
|
<span class="nb">require</span> <span class="s2">"colorized_string"</span>
|
60
|
-
<span class="no">ColorizedString</span><span class="p">.</span><span class="nf">colors</span> <span class="c1"># colors; ex: red, green, blue</span>
|
61
|
-
<span class="no">ColorizedString</span><span class="p">.</span><span class="nf">modes</span> <span class="c1"># modes; ex: bold, italic, underline</span>
|
60
|
+
<span class="no">ColorizedString</span><span class="p">.</span><span class="nf">colors</span> <span class="c1"># import colors; ex: red, green, blue</span>
|
61
|
+
<span class="no">ColorizedString</span><span class="p">.</span><span class="nf">modes</span> <span class="c1"># import modes; ex: bold, italic, underline</span>
|
62
62
|
|
63
63
|
<span class="k">module</span> <span class="nn">Constants</span>
|
64
64
|
<span class="no">NTRY_TO_SYM</span> <span class="o">=</span> <span class="p">{</span> <span class="c1"># define constants from an entry to a symbol class</span>
|
@@ -74,7 +74,7 @@
|
|
74
74
|
<span class="p">[</span><span class="ss">:PAPER</span> <span class="p">,</span> <span class="ss">:ROCK</span><span class="p">],</span>
|
75
75
|
<span class="p">[</span><span class="ss">:ROCK</span> <span class="p">,</span> <span class="ss">:SCISSORS</span><span class="p">]</span>
|
76
76
|
<span class="p">]</span>
|
77
|
-
<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">
|
77
|
+
<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">pc</span><span class="p">,</span><span class="n">cc</span><span class="o">|</span> <span class="p">[</span><span class="n">cc</span><span class="p">,</span><span class="n">pc</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>
|
78
78
|
<span class="no">INIT_STRINGS</span> <span class="o">=</span> <span class="p">[</span>
|
79
79
|
<span class="no">ColorizedString</span><span class="p">[</span><span class="s2">"You are about to enter a rock-paper-scissors best of 3 match."</span><span class="p">].</span><span class="nf">colorize</span><span class="p">(</span><span class="ss">:green</span><span class="p">),</span>
|
80
80
|
<span class="no">ColorizedString</span><span class="p">[</span><span class="s2">"Press the return/enter key to continue..."</span><span class="p">].</span><span class="nf">colorize</span><span class="p">(</span><span class="ss">:green</span><span class="p">),</span>
|
@@ -7,7 +7,7 @@
|
|
7
7
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
8
8
|
<meta name="theme-color" content="#157878">
|
9
9
|
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
|
10
|
-
<link rel="stylesheet" href="/assets/css/style.css?v=
|
10
|
+
<link rel="stylesheet" href="/assets/css/style.css?v=008b8e183e063f2ccf825af250fff5c3b2887057">
|
11
11
|
</head>
|
12
12
|
<body>
|
13
13
|
<section class="page-header">
|
@@ -15,7 +15,7 @@
|
|
15
15
|
<h2 class="project-tagline">A Ruby Programmed Rock Paper Scissors Game</h2>
|
16
16
|
|
17
17
|
<a href="http://github.com/bag3318/RockPaperScissors" class="btn">View on GitHub</a>
|
18
|
-
<a href="" class="btn">Report a Bug</a>
|
18
|
+
<a href="http://github.com/bag3318/RockPaperScissors/issues" class="btn">Report a Bug</a>
|
19
19
|
|
20
20
|
|
21
21
|
<a href="http://github.com/bag3318/RockPaperScissors/zipball/gh-pages" class="btn">Download .zip</a>
|
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=008b8e183e063f2ccf825af250fff5c3b2887057">
|
11
11
|
</head>
|
12
12
|
<body>
|
13
13
|
<section class="page-header">
|
@@ -15,7 +15,7 @@
|
|
15
15
|
<h2 class="project-tagline">A Ruby Programmed Rock Paper Scissors Game</h2>
|
16
16
|
|
17
17
|
<a href="http://github.com/bag3318/RockPaperScissors" class="btn">View on GitHub</a>
|
18
|
-
<a href="" class="btn">Report a Bug</a>
|
18
|
+
<a href="http://github.com/bag3318/RockPaperScissors/issues" class="btn">Report a Bug</a>
|
19
19
|
|
20
20
|
|
21
21
|
<a href="http://github.com/bag3318/RockPaperScissors/zipball/gh-pages" class="btn">Download .zip</a>
|
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=008b8e183e063f2ccf825af250fff5c3b2887057">
|
11
11
|
</head>
|
12
12
|
<body>
|
13
13
|
<section class="page-header">
|
@@ -15,7 +15,7 @@
|
|
15
15
|
<h2 class="project-tagline">A Ruby Programmed Rock Paper Scissors Game</h2>
|
16
16
|
|
17
17
|
<a href="http://github.com/bag3318/RockPaperScissors" class="btn">View on GitHub</a>
|
18
|
-
<a href="" class="btn">Report a Bug</a>
|
18
|
+
<a href="http://github.com/bag3318/RockPaperScissors/issues" class="btn">Report a Bug</a>
|
19
19
|
|
20
20
|
|
21
21
|
<a href="http://github.com/bag3318/RockPaperScissors/zipball/gh-pages" class="btn">Download .zip</a>
|
data/lib/Constants.rb
CHANGED
@@ -15,7 +15,7 @@ module Constants
|
|
15
15
|
[:PAPER , :ROCK],
|
16
16
|
[:ROCK , :SCISSORS]
|
17
17
|
]
|
18
|
-
LOSERS = WINNERS.map { |
|
18
|
+
LOSERS = WINNERS.map { |pc,cc| [cc,pc] } # this will take the original WINNERS array and flip the symbols, thus returning a loss for the user/player
|
19
19
|
INIT_STRINGS = [
|
20
20
|
ColorizedString["You are about to enter a rock-paper-scissors best of 3 match."].colorize(:green),
|
21
21
|
ColorizedString["Press the return/enter key to continue..."].colorize(:green),
|
data/lib/rps/version.rb
CHANGED
data/rps.gemspec
CHANGED
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|