internal virtual void set(CubieCube cc) { twist = cc.getTwistSym(); flip = cc.getFlipSym(); slice = cc.getUDSlice(); tsym = twist & 7; twist = twist >> 3; fsym = flip & 7; flip = flip >> 3; }
static void initTwistMove() { CubieCube c = new CubieCube(); CubieCube d = new CubieCube(); for (int i = 0; i < N_TWIST_SYM; i++) { c.setTwist(CubieCube.TwistS2R[i]); for (int j = 0; j < N_MOVES; j++) { CubieCube.CornMult(c, CubieCube.moveCube[j], d); TwistMove[i, j] = (char)d.getTwistSym(); } } }