PlayRockPaperScissorsGame 2.4.1 → 2.4.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6477f600cb00e3938eb3d7b49a3652ef75a6a42a
4
- data.tar.gz: df1885d09eac8ec673d0596cb02e8621754ab11f
3
+ metadata.gz: 2bd2a920f9e72b53a1c413b2834a0da51c3a0bfb
4
+ data.tar.gz: 83f5d324eaa90420a374d6e8c17f7c3ccc2112d0
5
5
  SHA512:
6
- metadata.gz: 1a6a2aeb3e598ed4606caa7985ce2985aecbfe1adbc273ec2bf145628d6eb3fb0ab1b4587ece60490cf853af25266ac363dd78c23e22c9d8deafa800efb566a2
7
- data.tar.gz: 1010d4bd35b358b2c0fe56c3dc64d1282e0dfc35e87bdad1904fc9edd429765383ac60462f5abf8bd3b0b118a31a6a4ff6f28a961ae5c2997d0c139fe9ca7487
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.1" # define version constant
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 { |wp,lp| [lp,wp] } # this will take the original WINNERS array and flip the symbols, thus returning a loss for the user/player
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=8ade7247dbbaa777a46e6b2b762a86575087bb4a">
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=8ade7247dbbaa777a46e6b2b762a86575087bb4a">
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=8ade7247dbbaa777a46e6b2b762a86575087bb4a">
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.1"</span> <span class="c1"># define version constant</span>
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">wp</span><span class="p">,</span><span class="n">lp</span><span class="o">|</span> <span class="p">[</span><span class="n">lp</span><span class="p">,</span><span class="n">wp</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>
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=8ade7247dbbaa777a46e6b2b762a86575087bb4a">
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=8ade7247dbbaa777a46e6b2b762a86575087bb4a">
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=8ade7247dbbaa777a46e6b2b762a86575087bb4a">
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 { |wp,lp| [lp,wp] } # this will take the original WINNERS array and flip the symbols, thus returning a loss for the user/player
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
@@ -1,3 +1,3 @@
1
1
  module RockPaperScissors
2
- VERSION = "2.4.1"
2
+ VERSION = "2.4.2"
3
3
  end
data/rps.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "PlayRockPaperScissorsGame"
3
- spec.version = "2.4.1"
3
+ spec.version = "2.4.2"
4
4
  spec.date = "2017-04-05"
5
5
  spec.summary = "A Rock Paper Scissors Ruby Gem"
6
6
  spec.description = <<-EOF
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.4.1
4
+ version: 2.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - bag3318
metadata.gz.sig CHANGED
Binary file