(int idx)
| 45 | } |
| 46 | |
| 47 | private static boolean canTwist(int idx) { |
| 48 | int top = getTop(idx); |
| 49 | int bottom = getBottom(idx); |
| 50 | return (top & 1) != 0 && (top & (1 << 6)) != 0 && |
| 51 | (bottom & 1) != 0 && (bottom & (1 << 6)) != 0; |
| 52 | } |
| 53 | |
| 54 | public static int applyMove(int state, String move) { |
| 55 | //State state = this; |