PlayRockPaperScissorsGame 1.5.7 → 1.5.8
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 +1 -1
- data/lib/rps.rb +1 -1
- 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: b06ddea59fab9a14220e92886db36ade40b9d5a7
|
4
|
+
data.tar.gz: 21a1c7e9cc41177485eb9885717b673914afb330
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d5271d4e9109c63d463d65d2b6edfa014b3c6044f554ac9d1ac637cdfaf2150f86785f91b4b36d4cc6bd5dd3930321fce28b7a134bf818c98bf28f06854ea7a
|
7
|
+
data.tar.gz: 5fb3cb3325c3ea1cffac8ada50005f95039b5d11f8211277158dc99d59b6be4032518e5e4e12aa68f2bd484975a0ef49f1b19f3101836494d4bf70f3e3b0bdcc
|
@@ -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
@@ -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
@@ -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.8"
|
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"
|