PlayRockPaperScissorsGame 2.4.2 → 2.4.3

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: 2bd2a920f9e72b53a1c413b2834a0da51c3a0bfb
4
- data.tar.gz: 83f5d324eaa90420a374d6e8c17f7c3ccc2112d0
3
+ metadata.gz: 73fd45bc0d5ac753551c7a450a0430a5a1c48b0b
4
+ data.tar.gz: a766b7a3a93320729bb7abab7ac9c9249f5cb92d
5
5
  SHA512:
6
- metadata.gz: 648093e3e61fe0d27e6ebd924995ef86b8787d05aa8aaf2f3f160817719097755c308d524db39d35d2f63de688e746f0783bf191280299794888b9b747d48ee4
7
- data.tar.gz: 1fd57169f46effc2eb54ab1e81c5970ff541b9d4b7800f62d06294863cf39e14e8ffcb4189e2f28c166f296de9892190e2da69d1f8484bdde4f29069c900d61d
6
+ metadata.gz: 1a9f4564eed49b6b1e54855ef152fabd41f4af6a5605118ecc622bbfacbb5a62c68a6736937e72eaf4a0527e0f76e107f9a13df73bd6ba870828ffaabe7f773e
7
+ data.tar.gz: 1dcbd00613af9ea5f23091b332a342ef6378020659d2613463847e873e0c49b0b7cebe05d2aad35d2e29deb3ced4feda5f9d3722913c5245086d06734c518774
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/docs/Code.md CHANGED
@@ -29,7 +29,7 @@ __`% rps`__
29
29
  class PlayRockPaperScissorsGame # define master class
30
30
 
31
31
  module RockPaperScissors
32
- VERSION = "2.4.2" # define version constant
32
+ VERSION = "2.4.3" # define version constant
33
33
  end
34
34
 
35
35
  # intiate the colorize gem
@@ -80,7 +80,7 @@ class PlayRockPaperScissorsGame # define master class
80
80
  puts ColorizedString["Player score: #{@player_score}, "].colorize(:blue) +
81
81
  ColorizedString["Computer score: #{@computer_score}, Ties: #{@ties}"].colorize(:blue)
82
82
  player = PrivateMethods.player_choice
83
- computer = Constants::COMPUTER_CHOICES.sample # chooses a random option
83
+ computer = Constants::COMPUTER_CHOICES.sample # chooses a "random" option
84
84
  puts ColorizedString["\nPlayer chooses #{player.to_s.downcase}"].colorize(:blue)
85
85
  puts ColorizedString["Computer chooses #{computer.to_s.downcase}"].colorize(:blue)
86
86
  case PrivateMethods.player_outcome [player, computer] # define a reference call for player and computer for the arrays called in the player_outcome method
@@ -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=008b8e183e063f2ccf825af250fff5c3b2887057">
10
+ <link rel="stylesheet" href="/assets/css/style.css?v=b9b8e81243f85ef7e306bbe53b23572f793119fb">
11
11
  </head>
12
12
  <body>
13
13
  <section class="page-header">
@@ -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=008b8e183e063f2ccf825af250fff5c3b2887057">
10
+ <link rel="stylesheet" href="/assets/css/style.css?v=b9b8e81243f85ef7e306bbe53b23572f793119fb">
11
11
  </head>
12
12
  <body>
13
13
  <section class="page-header">
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=008b8e183e063f2ccf825af250fff5c3b2887057">
10
+ <link rel="stylesheet" href="/assets/css/style.css?v=b9b8e81243f85ef7e306bbe53b23572f793119fb">
11
11
  </head>
12
12
  <body>
13
13
  <section class="page-header">
@@ -52,7 +52,7 @@
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.2"</span> <span class="c1"># define version constant</span>
55
+ <span class="no">VERSION</span> <span class="o">=</span> <span class="s2">"2.4.3"</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>
@@ -103,7 +103,7 @@
103
103
  <span class="nb">puts</span> <span class="no">ColorizedString</span><span class="p">[</span><span class="s2">"Player score: </span><span class="si">#{</span><span class="vi">@player_score</span><span class="si">}</span><span class="s2">, "</span><span class="p">].</span><span class="nf">colorize</span><span class="p">(</span><span class="ss">:blue</span><span class="p">)</span> <span class="o">+</span>
104
104
  <span class="no">ColorizedString</span><span class="p">[</span><span class="s2">"Computer score: </span><span class="si">#{</span><span class="vi">@computer_score</span><span class="si">}</span><span class="s2">, Ties: </span><span class="si">#{</span><span class="vi">@ties</span><span class="si">}</span><span class="s2">"</span><span class="p">].</span><span class="nf">colorize</span><span class="p">(</span><span class="ss">:blue</span><span class="p">)</span>
105
105
  <span class="n">player</span> <span class="o">=</span> <span class="no">PrivateMethods</span><span class="p">.</span><span class="nf">player_choice</span>
106
- <span class="n">computer</span> <span class="o">=</span> <span class="no">Constants</span><span class="o">::</span><span class="no">COMPUTER_CHOICES</span><span class="p">.</span><span class="nf">sample</span> <span class="c1"># chooses a random option</span>
106
+ <span class="n">computer</span> <span class="o">=</span> <span class="no">Constants</span><span class="o">::</span><span class="no">COMPUTER_CHOICES</span><span class="p">.</span><span class="nf">sample</span> <span class="c1"># chooses a "random" option</span>
107
107
  <span class="nb">puts</span> <span class="no">ColorizedString</span><span class="p">[</span><span class="s2">"</span><span class="se">\n</span><span class="s2">Player chooses </span><span class="si">#{</span><span class="n">player</span><span class="p">.</span><span class="nf">to_s</span><span class="p">.</span><span class="nf">downcase</span><span class="si">}</span><span class="s2">"</span><span class="p">].</span><span class="nf">colorize</span><span class="p">(</span><span class="ss">:blue</span><span class="p">)</span>
108
108
  <span class="nb">puts</span> <span class="no">ColorizedString</span><span class="p">[</span><span class="s2">"Computer chooses </span><span class="si">#{</span><span class="n">computer</span><span class="p">.</span><span class="nf">to_s</span><span class="p">.</span><span class="nf">downcase</span><span class="si">}</span><span class="s2">"</span><span class="p">].</span><span class="nf">colorize</span><span class="p">(</span><span class="ss">:blue</span><span class="p">)</span>
109
109
  <span class="k">case</span> <span class="no">PrivateMethods</span><span class="p">.</span><span class="nf">player_outcome</span> <span class="p">[</span><span class="n">player</span><span class="p">,</span> <span class="n">computer</span><span class="p">]</span> <span class="c1"># define a reference call for player and computer for the arrays called in the player_outcome method</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=008b8e183e063f2ccf825af250fff5c3b2887057">
10
+ <link rel="stylesheet" href="/assets/css/style.css?v=b9b8e81243f85ef7e306bbe53b23572f793119fb">
11
11
  </head>
12
12
  <body>
13
13
  <section class="page-header">
@@ -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=008b8e183e063f2ccf825af250fff5c3b2887057">
10
+ <link rel="stylesheet" href="/assets/css/style.css?v=b9b8e81243f85ef7e306bbe53b23572f793119fb">
11
11
  </head>
12
12
  <body>
13
13
  <section class="page-header">
@@ -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=008b8e183e063f2ccf825af250fff5c3b2887057">
10
+ <link rel="stylesheet" href="/assets/css/style.css?v=b9b8e81243f85ef7e306bbe53b23572f793119fb">
11
11
  </head>
12
12
  <body>
13
13
  <section class="page-header">
data/lib/rps/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RockPaperScissors
2
- VERSION = "2.4.2"
2
+ VERSION = "2.4.3"
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.2"
3
+ spec.version = "2.4.3"
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.2
4
+ version: 2.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - bag3318
metadata.gz.sig CHANGED
Binary file