codebreaker_game 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/codebreaker_game.rb +3 -3
- data/lib/codebreaker_game/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ea1481de1c1fa7b5c89626b98184e99447c37b0c465905b672389789751a2c3
|
4
|
+
data.tar.gz: d58d5ee12a599075a0454f0a62bb89d9807b75d80bf1645db2ebab3aa865fc6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17deceabbb3ab4cb334002ed2cdd2a055c621b3628af5223786e59059f4412142cc526db175131eda59a608cd36c1e634ed5f9f5074320cfa79222ad4f75b2d8
|
7
|
+
data.tar.gz: adb3788f24a4abd5c2a63dd90a05bca9e8cdca8e0a88eb688e062fc590e15e6758838ae0384dc5d634cec217d7e54abb3d4f9f651262bff9c91059ed5cf36f6d
|
data/lib/codebreaker_game.rb
CHANGED
@@ -62,9 +62,9 @@ module CodebreakerGame
|
|
62
62
|
|
63
63
|
def sorted_winners
|
64
64
|
@winners.sort_by do |winner|
|
65
|
-
[winner.difficulty.attempts,
|
66
|
-
winner.attempts_used,
|
67
|
-
winner.hints_used]
|
65
|
+
[winner.user.difficulty.attempts,
|
66
|
+
winner.user.attempts_used,
|
67
|
+
winner.user.hints_used]
|
68
68
|
end
|
69
69
|
end
|
70
70
|
|