twisty_puzzles 0.0.42 → 0.0.43
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/twisty_puzzles/cube.rb +2 -1
- data/lib/twisty_puzzles/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: aa2e70bca608d547f2d099dc5b41c7c98e5e9b3e6f95578efb8766c094c257a7
|
4
|
+
data.tar.gz: d137263714a3a90997ff615afa5f3965e5cde937f8a12604efb1d64f602a9e43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a02e534b3cf1c9183d63c4a85a6d000914621f7b0a23b992b5b39afa0e030ad4610ee9e3caf53a4916cd50afc5b24be2683fe86b063dd66f3173ff3adef0ce4
|
7
|
+
data.tar.gz: 482678b3a2483bb2e29195e7520070983a3b9f506cbc596d2f720a14dd4a345f50c3075b1e04f7872dab4ca5690f85fb57c04af0429422420eabf652ef6969b2
|
data/lib/twisty_puzzles/cube.rb
CHANGED
@@ -225,7 +225,8 @@ module TwistyPuzzles
|
|
225
225
|
face_index = rotation_neighbors.index(self)
|
226
226
|
raise unless face_index
|
227
227
|
|
228
|
-
|
228
|
+
after_rotation_index = face_index + rotation_neighbors.length - rotation.direction.value
|
229
|
+
rotation_neighbors[after_rotation_index % rotation_neighbors.length]
|
229
230
|
end
|
230
231
|
|
231
232
|
def mirror(normal_face)
|