rockpaperscissorsbattle 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rockpaperscissorsbattle/game.rb +2 -3
- data/lib/rockpaperscissorsbattle/version.rb +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: b7b9321f669d1c3233af5cb3f6a96a1cc9db84cc
|
4
|
+
data.tar.gz: 2a0e6e8bb70c9d7b7b620c3f7d0021249311b1c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad1b38717ae51d1c09c237ad9dbb69405d0244fa7bf52378c525e6f92ac6c2af14cbb97dc19cf01fec291ed33ae5f9ea1b79f193854fb8e4b1022a46556a50b2
|
7
|
+
data.tar.gz: 8a0c1730d3fefd60a767d041713b9f9ce4f1907667ed0f57f1fa056e78af732c032678591fe5b7384ffa38a3fad7d282a86c6fabe5d5ff19af992fea72b43e0d
|
@@ -18,12 +18,11 @@ module Rockpaperscissorsbattle
|
|
18
18
|
if @options[pick1] == pick2
|
19
19
|
puts "Player1 wins!"
|
20
20
|
winner = 1
|
21
|
-
elsif
|
22
|
-
@options[pick2] == pick1
|
21
|
+
elsif @options[pick2] == pick1
|
23
22
|
puts "Player2 wins!"
|
24
23
|
winner = 2
|
25
24
|
else
|
26
|
-
"You tied..."
|
25
|
+
puts "You tied..."
|
27
26
|
winner = 0
|
28
27
|
end
|
29
28
|
end
|