Kyuubuキューブ

3×3×1
0

    <script type="module" src="https://unpkg.com/@johnmorrisdotca/kyuubu/dist/cuboid/element-define.js"></script>
    <kyuubu-cuboid dims="3x3x1" scramble="U2 R2 M2" moves="M2 R2 U2" controls></kyuubu-cuboid>
    import { randomCuboidScramble } from "@johnmorrisdotca/kyuubu/cuboid";
    import { CuboidView } from "@johnmorrisdotca/kyuubu/cuboid/draw";
    
    const view = new CuboidView(document.getElementById("puzzle"), { dims: [2, 3, 3] });
    for (const move of randomCuboidScramble([2, 3, 3])) view.turn(move);