You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having difficulty understanding the notation used for the string input. From my interpretation of the documentation, the following code represents the mapping of colors to the faces of a cube:
Hello,
I am having difficulty understanding the notation used for the string input. From my interpretation of the documentation, the following code represents the mapping of colors to the faces of a cube:
color_side_mapping = { "red": "R", "white": "U", "orange": "L", "green": "F", "blue": "B", "yellow": "D" }
And this code represents the mapping of the faces to their respective indices in a string:
grid_size = 9
face_indices = dict()
face_indices['U'] = list(range(0, grid_size * 1))
face_indices['L'] = list(range(grid_size * 1 , grid_size * 2))
face_indices['F'] = list(range(grid_size * 2 , grid_size * 3))
face_indices['R'] = list(range(grid_size * 3 , grid_size * 4))
face_indices['B'] = list(range(grid_size * 4 , grid_size * 5))
face_indices['D'] = list(range(grid_size * 5 , grid_size * 6))
Example input: wwwwwwwwwooooooooogggggggggrrrrrrrrrbbbbbbbbbyyyyyyyyy
Any clarification would be greatly appreciated. Thank you.
The text was updated successfully, but these errors were encountered: