Home▸Algorithms & AI▸Rubik's Cube Net: Permutation-Group Move Engine (2D)

🧩 Rubik's Cube Net: Permutation-Group Move Engine (2D)

2D unfolded Rubik's-cube net: the 6 real face-turn generators (U D L R F B and their inverses) permute all 54 stickers exactly as on a physical cube, with a scramble generator, move counter and live solved-state detector.

Algorithms & AI2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
2d-rubiks-cube-puzzle-challenge ↗ Open standalone

This 2D companion trades the 3D version's orbiting cube for the standard unfolded cross-net view and puts the real mechanics on screen: every one of the 54 stickers lives at an integer (x, y, z) coordinate, and each of the 12 face-turn generators (U D L R F B, and their primes) applies an actual 90° rotation matrix to every sticker in that layer — the exact rigid transform a physical Rubik's Cube layer undergoes, not a repainted grid. A scramble button fires N random generators from that same move set, a move counter tracks your own turns separately from the scramble length, and a solved-state detector checks all 54 stickers on every move so you always know exactly how close the permutation is to identity.

⚙ Under the hood

2D unfolded Rubik's-cube net driven by the same permutation-group mechanics as a physical cube: 12 real face-turn generators, a scramble sequence, a move counter and a 54-sticker solved-state check.

rubik's cubepermutation groupcombinatoricsalgorithmsgroup theory

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)