PlayRockPaperScissorsGame 1.7.4 → 1.7.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/PlayRockPaperScissorsGame +2 -0
- data/bin/rps +2 -0
- data/lib/ref/Constants.rb +1 -0
- data/lib/ref/PrivateMethods.rb +1 -0
- data/rps.gemspec +1 -1
- data/test/test_rps.rb +3 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 218a89fd77653624848eb49bfebc7a5b02f01eda
|
4
|
+
data.tar.gz: d789869331c6f7a0f52fa198c00e8612cc78ee9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca9d04e4f87633906cb21dde2fe75b56e50239a629344dd93bf849938b8dbb41111fb44333089b3f0b003f159ee7a88a01b954cdd7cdb11f978b843ff9dc7087
|
7
|
+
data.tar.gz: de634187bc937eb8b0a38bfc6553d62cf270d6483516781cfe6d1b11ff3da8239cfd91fc4295f10a0e0bf241e0ed2d3b5589ca2594d71413181e4f2e9ffc8d71
|
@@ -16,6 +16,7 @@ class PlayRockPaperScissorsGame
|
|
16
16
|
ColorizedString.modes;
|
17
17
|
|
18
18
|
module Constants
|
19
|
+
protected;
|
19
20
|
NTRY_TO_SYM = { 'p' => :PAPER, 'r' => :ROCK, 's' => :SCISSORS };
|
20
21
|
VALID_ENTRIES = NTRY_TO_SYM.keys;
|
21
22
|
COMPUTER_CHOICES = NTRY_TO_SYM.values;
|
@@ -69,6 +70,7 @@ class PlayRockPaperScissorsGame
|
|
69
70
|
gets;
|
70
71
|
end;
|
71
72
|
module PrivateMethods
|
73
|
+
private;
|
72
74
|
class << self
|
73
75
|
def player_choice
|
74
76
|
loop do
|
data/bin/rps
CHANGED
@@ -16,6 +16,7 @@ class PlayRockPaperScissorsGame
|
|
16
16
|
ColorizedString.modes;
|
17
17
|
|
18
18
|
module Constants
|
19
|
+
protected;
|
19
20
|
NTRY_TO_SYM = { 'p' => :PAPER, 'r' => :ROCK, 's' => :SCISSORS };
|
20
21
|
VALID_ENTRIES = NTRY_TO_SYM.keys;
|
21
22
|
COMPUTER_CHOICES = NTRY_TO_SYM.values;
|
@@ -69,6 +70,7 @@ class PlayRockPaperScissorsGame
|
|
69
70
|
gets;
|
70
71
|
end;
|
71
72
|
module PrivateMethods
|
73
|
+
private;
|
72
74
|
class << self
|
73
75
|
def player_choice
|
74
76
|
loop do
|
data/lib/ref/Constants.rb
CHANGED
data/lib/ref/PrivateMethods.rb
CHANGED
data/rps.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = "PlayRockPaperScissorsGame"
|
3
|
-
spec.version = "1.7.
|
3
|
+
spec.version = "1.7.5"
|
4
4
|
spec.date = "2017-04-01"
|
5
5
|
spec.summary = "A Rock Paper Scissors Ruby Gem"
|
6
6
|
spec.description = "A Ruby-programmed rock paper scissors game. To install: gem install PlayRockPaperScissorsGame; To run: rps; or: PlayRockPaperScissorsGame; For issues: https://github.com/bag3318/RockPaperScissors/issues"
|
data/test/test_rps.rb
CHANGED
@@ -13,6 +13,7 @@ class RakeTest
|
|
13
13
|
ColorizedString.modes;
|
14
14
|
|
15
15
|
module Constants
|
16
|
+
protected;
|
16
17
|
NTRY_TO_SYM = { 'p' => :PAPER, 'r' => :ROCK, 's' => :SCISSORS };
|
17
18
|
VALID_ENTRIES = NTRY_TO_SYM.keys;
|
18
19
|
COMPUTER_CHOICES = NTRY_TO_SYM.values;
|
@@ -65,7 +66,9 @@ class RakeTest
|
|
65
66
|
end;
|
66
67
|
gets;
|
67
68
|
end;
|
69
|
+
private
|
68
70
|
module PrivateMethods
|
71
|
+
private;
|
69
72
|
class << self
|
70
73
|
def player_choice
|
71
74
|
loop do
|