PlayRockPaperScissorsGame 1.5.6 → 1.5.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/PlayRockPaperScissorsGame +1 -1
- data/bin/rps +2 -2
- data/lib/rps.rb +2 -2
- data/rps.gemspec +1 -1
- 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: ad7f50bf67583b61a98dd77ce55392769e8a3ac1
|
4
|
+
data.tar.gz: 780390dec44890b39b667bed7d283d17ef987c0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5624e3541c15717165d0fe48e45ea00d1e7d559bead5fc0a2762442b8b733d2130c8959451dc2c4606aff4565de9c4473d80f51fe5c60e8262fbf5c0f7e5768a
|
7
|
+
data.tar.gz: e6330a636a771c4d2c6ee8ff6fac8addd6561a78bf22ac8274dded331b8473e86f52132080781db55d4661e235e0e689e3908d86a1670b571ce3a5c0609c1bea
|
@@ -39,7 +39,7 @@ class PlayRockPaperScissorsGame
|
|
39
39
|
def initialize
|
40
40
|
@player_score = @computer_score = @ties = 0;
|
41
41
|
end;
|
42
|
-
def
|
42
|
+
def Play(winning_score)
|
43
43
|
while @player_score < winning_score && @computer_score < winning_score
|
44
44
|
puts ColorizedString["Player score: #{@player_score}, "].colorize(:blue) +
|
45
45
|
ColorizedString["Computer score: #{@computer_score}, Ties: #{@ties}"].colorize(:blue);
|
data/bin/rps
CHANGED
@@ -13,7 +13,7 @@ class PlayRockPaperScissorsGame
|
|
13
13
|
require "colorized_string";
|
14
14
|
ColorizedString.colors;
|
15
15
|
ColorizedString.modes;
|
16
|
-
|
16
|
+
|
17
17
|
class RPS
|
18
18
|
|
19
19
|
protected;
|
@@ -39,7 +39,7 @@ class PlayRockPaperScissorsGame
|
|
39
39
|
def initialize
|
40
40
|
@player_score = @computer_score = @ties = 0;
|
41
41
|
end;
|
42
|
-
def
|
42
|
+
def Play(winning_score)
|
43
43
|
while @player_score < winning_score && @computer_score < winning_score
|
44
44
|
puts ColorizedString["Player score: #{@player_score}, "].colorize(:blue) +
|
45
45
|
ColorizedString["Computer score: #{@computer_score}, Ties: #{@ties}"].colorize(:blue);
|
data/lib/rps.rb
CHANGED
@@ -11,7 +11,7 @@ class PlayRockPaperScissorsGame
|
|
11
11
|
require "colorized_string";
|
12
12
|
ColorizedString.colors;
|
13
13
|
ColorizedString.modes;
|
14
|
-
|
14
|
+
|
15
15
|
class RPS
|
16
16
|
|
17
17
|
require "ref/Constants.rb";
|
@@ -29,7 +29,7 @@ class PlayRockPaperScissorsGame
|
|
29
29
|
def initialize
|
30
30
|
@player_score = @computer_score = @ties = 0;
|
31
31
|
end;
|
32
|
-
def
|
32
|
+
def Play(winning_score)
|
33
33
|
while @player_score < winning_score && @computer_score < winning_score
|
34
34
|
puts ColorizedString["Player score: #{@player_score}, "].colorize(:blue) +
|
35
35
|
ColorizedString["Computer score: #{@computer_score}, Ties: #{@ties}"].colorize(:blue);
|
data/rps.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = "PlayRockPaperScissorsGame"
|
3
|
-
spec.version = "1.5.
|
3
|
+
spec.version = "1.5.7"
|
4
4
|
spec.date = "2017-03-30"
|
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"
|