rapidcube

1from .rapidcube import *
2
3__doc__ = rapidcube.__doc__
4if hasattr(rapidcube, "__all__"):
5    __all__ = rapidcube.__all__
class Cube2x2:

A compact 2x2 Rubik's Cube model with fast move operations.

def do_u_move(self, /):

Apply the U move (clockwise top face turn).

def do_u_prime_move(self, /):

Apply the U' move (counterclockwise top face turn).

def do_d_move(self, /):

Apply the D move (clockwise bottom face turn).

def do_d_prime_move(self, /):

Apply the D' move (counterclockwise bottom face turn).

def do_r_move(self, /):

Apply the R move (clockwise right face turn).

def do_r_prime_move(self, /):

Apply the R' move (counterclockwise right face turn).

def do_l_move(self, /):

Apply the L move (clockwise left face turn).

def do_l_prime_move(self, /):

Apply the L' move (counterclockwise left face turn).

def do_f_move(self, /):

Apply the F move (clockwise front face turn).

def do_f_prime_move(self, /):

Apply the F' move (counterclockwise front face turn).

def do_b_move(self, /):

Apply the B move (clockwise back face turn).

def do_b_prime_move(self, /):

Apply the B' move (counterclockwise back face turn).

def to_binary(self, /):

Return the 64-bit cube state as a binary string.

def do_moves(self, /, moves):

Apply a whitespace-separated sequence of cube moves.

state
class Cube3x3:

A compact 3x3 Rubik's Cube model with corner and edge state.

def rotate_edges(self, /, i0, i1, i2, i3, ori):

The type of the None singleton.

def rotate_edges_prime(self, /, i0, i1, i2, i3, ori):

The type of the None singleton.

def do_u_move_corners(self, /):

The type of the None singleton.

def do_u_move_edges(self, /):

The type of the None singleton.

def do_u_move(self, /):

Apply the U move (clockwise top face turn).

def do_u_prime_move_corners(self, /):

The type of the None singleton.

def do_u_prime_move_edges(self, /):

The type of the None singleton.

def do_u_prime_move(self, /):

Apply the U' move (counterclockwise top face turn).

def do_d_move_corners(self, /):

The type of the None singleton.

def do_d_move_edges(self, /):

The type of the None singleton.

def do_d_move(self, /):

Apply the D move (clockwise bottom face turn).

def do_d_prime_move_corners(self, /):

The type of the None singleton.

def do_d_prime_move_edges(self, /):

The type of the None singleton.

def do_d_prime_move(self, /):

Apply the D' move (counterclockwise bottom face turn).

def do_r_move_corners(self, /):

The type of the None singleton.

def do_r_move(self, /):

Apply the R move (clockwise right face turn).

def do_r_prime_move_corners(self, /):

The type of the None singleton.

def do_r_prime_move(self, /):

Apply the R' move (counterclockwise right face turn).

def do_l_move_corners(self, /):

The type of the None singleton.

def do_l_move(self, /):

Apply the L move (clockwise left face turn).

def do_l_prime_move_corners(self, /):

The type of the None singleton.

def do_l_prime_move(self, /):

Apply the L' move (counterclockwise left face turn).

def do_f_move_corners(self, /):

The type of the None singleton.

def do_f_move(self, /):

Apply the F move (clockwise front face turn).

def do_f_prime_move_corners(self, /):

The type of the None singleton.

def do_f_prime_move(self, /):

Apply the F' move (counterclockwise front face turn).

def do_b_move_corners(self, /):

The type of the None singleton.

def do_b_move(self, /):

Apply the B move (clockwise back face turn).

def do_b_prime_move_corners(self, /):

The type of the None singleton.

def do_b_prime_move(self, /):

Apply the B' move (counterclockwise back face turn).

def to_binary(self, /):

Return the corner state as a 64-bit binary string.

def do_moves(self, /, moves):

Apply a whitespace-separated sequence of cube moves.

corners