[Community puzzle] 2×2×2 Rubik’s cube movements


#1

This topic is about the puzzle 2×2×2 Rubik’s cube movements.

Feel free to send your feedback or ask some help here!


#2

At last could apply the knowledge of matrix rotation operators somewhere :slight_smile: Loved this puzzle!


#3

Thank you. :wink:


#4

I think this sentence is missing a verb: "The moves in one single line, for example B' eventually with dots (for human readability, you can ignore them)."

Can you clarify? Thanks.


#5

It's in the I/O section, it's not really expected to be a sentence.

Weirdest part of this sentence (but you can get used to it easily) is the French use of "eventually" to actually mean "possibly".


#6

OK, edited.


#7

Thanks. I'm francophone, but out of practice. Been living here too long.


#8

I am not able to pass the last validator. I checked my code by printing all 6 faces for each possible movement and everything looks good. I am wondering if I misunderstood something. Hint?

:slight_smile:


#9

Does your code work if the input contains a dot after F/B/L/R/U/D/2?


#10

Yes. My understanding is that the dot can be ignored. I am able to pass the given test case "R2L2UD'.F2B2UD'" which has a dot in it. I put a dot after one of the 2 and it still passes.


#11

Have you tested/checked your code regarding the moves which do not appear in any of the test cases e.g. F', B', L', U', D and D2?


#12

EvilGenius008, a tip: what if every single square had a unique id?


#13

Hi. I think I must be misintrepreting the moves.
Would you mind correcting me?

front: turn the entire cube clockwise
back: turn the entire cube clockwise (is this a trick description?)
up: turn the upper half part of the cube clockwise
down: turn the lower half of the cube clockwise
left: turn the left part of the cube upward
right: turn the right part of the cube upward

{any}2: repeat any twice
{any}': repeat any but in the reverse direction


#14

Nope. Turn the back face clockwise if you look at the cube from the back.


#15

That made me get it! I completely forgot rotations!
Whoops. Thanks! =D


#16

I am having the same problem with the last validator, i have now tried everything that i came to think of, and still haven't found any errors in my output.. do you have a hint if you have solved it by now? :confused: