Skip to content

Commit

Permalink
[twisty] Add opposite-centers stickering.
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarron committed Dec 17, 2024
1 parent a7423cf commit 031cc9b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/cubing/puzzles/stickerings/cube-like-stickerings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,13 @@ export async function cubeLikePuzzleStickering(
puzzleStickering.set(m.not(CENTERS()), PieceStickering.Ignored);
break;
}
case "opposite-centers": {
puzzleStickering.set(
m.not(m.and([CENTERS(), m.or(m.moves(["U", "D"]))])),
PieceStickering.Ignored,
);
break;
}
default:
console.warn(
`Unsupported stickering for ${puzzleLoader.id}: ${stickering}. Setting all pieces to dim.`,
Expand Down
1 change: 1 addition & 0 deletions src/cubing/puzzles/stickerings/puzzle-stickerings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export const experimentalStickerings: Record<
invisible: { groups: { "3x3x3": "Miscellaneous" } },
picture: { groups: { "3x3x3": "Miscellaneous" } },
"centers-only": { groups: { "3x3x3": "Miscellaneous" } }, // TODO
"opposite-centers": { groups: { "4x4x4": "Reduction" } }, // TODO
"experimental-centers-U": {},
"experimental-centers-U-D": {},
"experimental-centers-U-L-D": {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export function demo(visualization: VisualizationFormat): void {

addAlg("full", "y L' U R' F' U L2 U2' L' U' L U2' D R' D' F2 R2 U'");
addAlg("centers-only", "(x y)3");
addAlg("opposite-centers", "r2 f2 r2"); // 4x4x4
addAlg("PLL", "R U R' U' R' F R2 U' R' U' R U R' F'");
addAlg("CLS", "R U R' U' R U R' U R U' R'");
addAlg("OLL", "r U R' U R U2 r'");
Expand Down

0 comments on commit 031cc9b

Please sign in to comment.