PlayRockPaperScissorsGame 2.2.2 → 2.2.3
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/bin/PlayRockPaperScissorsGame +2 -2
- data/lib/rps/version.rb +1 -1
- data/rps.gemspec +2 -2
- metadata +2 -2
- 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: 936027de91c13edfc80fe800087739bef31d2bf0
|
4
|
+
data.tar.gz: e3ffaeb8745823c3063c39c30a0dbc24d3107516
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5089d16e2900dcbdcd36c0dd6ab22dcb7fcf1adddd1f08e7dd648078ca73507a465faa5502a52e36232c5a880dde48492b1c7721c9d860eb8eabb9db050acaca
|
7
|
+
data.tar.gz: d60cf2a95c5cf3d029e475a645a745e08ebad7b9fb38ca9c5f5a90efdc18f8947b14ca10e06f7aa4b985665b1bb6a36695aeb0aad3ef2c051fba032d16ade806
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
@@ -21,7 +21,7 @@ class PlayRockPaperScissorsGame
|
|
21
21
|
VALID_ENTRIES = NTRY_TO_SYM.keys
|
22
22
|
COMPUTER_CHOICES = NTRY_TO_SYM.values
|
23
23
|
WINNERS = [[:SCISSORS, :PAPER], [:PAPER, :ROCK], [:ROCK, :SCISSORS]] # format: player choice, computer choice
|
24
|
-
LOSERS = WINNERS.map { |i,j| [j,i] } # this will take the original WINNERS array and flip the symbols, thus returning a loss for the user/player
|
24
|
+
LOSERS = WINNERS.map { |i,j| [j,i] } # this will take the original `WINNERS` array and flip the symbols, thus returning a loss for the user/player
|
25
25
|
INIT_STRINGS = ["You are about to enter a rock-paper-scissors best of 3 match.", "Press the return/enter key to continue...", ""]
|
26
26
|
end
|
27
27
|
|
@@ -88,7 +88,7 @@ class PlayRockPaperScissorsGame
|
|
88
88
|
return :LOSE if Constants::LOSERS.include?(plays)
|
89
89
|
return :TIE if !:WIN | !:LOSE
|
90
90
|
end
|
91
|
-
def final_outcome(pl,
|
91
|
+
def final_outcome(pl,co)
|
92
92
|
return :WIN if pl > co
|
93
93
|
return :LOSE if pl < co
|
94
94
|
return :TIE if pl = co
|
data/lib/rps/version.rb
CHANGED
data/rps.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = "PlayRockPaperScissorsGame"
|
3
|
-
spec.version = "2.2.
|
4
|
-
spec.date = "2017-04-
|
3
|
+
spec.version = "2.2.3"
|
4
|
+
spec.date = "2017-04-04"
|
5
5
|
spec.summary = "A Rock Paper Scissors Ruby Gem"
|
6
6
|
spec.description = <<-EOF
|
7
7
|
A Ruby-programmed rock paper scissors game.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: PlayRockPaperScissorsGame
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bag3318
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
ft+uhriUZSVDBJRLSlrQEH2f0866a9dA4oUmvvFU46Mh6pozDjOcLJIp/tCnbVOc
|
31
31
|
HSdXPrjfOoDbhBPH/4wUd5P0rDoNKN1hxH4SzA==
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2017-04-
|
33
|
+
date: 2017-04-04 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: bundler
|
metadata.gz.sig
CHANGED
Binary file
|