beginner
special
¶
BeginnerSolver
¶
solve(self)
¶
Solves the cube provided to the solver
Returns:
Type | Description |
---|---|
str |
solution to the cube |
Source code in core/solver/beginner/__init__.py
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 |
|
check_face(cube, cubie, face)
¶
Checks that the color of a face on a cubie is correct => solved
Parameters:
Name | Type | Description | Default |
---|---|---|---|
cube |
Cube |
Cube to check |
required |
cubie |
Cubie |
Cubie to check |
required |
face |
str |
Face of the cubie to check |
required |
Source code in core/solver/beginner/__init__.py
6 7 8 9 10 11 12 13 14 15 |
|
check_second_layer(cube)
¶
Checks that the second layer step was correctly executed
Parameters:
Name | Type | Description | Default |
---|---|---|---|
cube |
Cube |
Cube to check |
required |
Source code in core/solver/beginner/__init__.py
43 44 45 46 47 48 49 50 51 52 53 54 |
|
check_white_cross(cube)
¶
Checks that the white cross step was correctly executed
Parameters:
Name | Type | Description | Default |
---|---|---|---|
cube |
Cube |
Cube to check |
required |
Source code in core/solver/beginner/__init__.py
17 18 19 20 21 22 23 24 25 26 27 |
|
check_white_face(cube)
¶
Checks that the white face step was correctly executed
Parameters:
Name | Type | Description | Default |
---|---|---|---|
cube |
Cube |
Cube to check |
required |
Source code in core/solver/beginner/__init__.py
29 30 31 32 33 34 35 36 37 38 39 40 41 |
|
check_yellow_corner_orientation(cube)
¶
Checks that the yellow corner orientation step was correctly executed
Parameters:
Name | Type | Description | Default |
---|---|---|---|
cube |
Cube |
Cube to check |
required |
Source code in core/solver/beginner/__init__.py
93 94 95 96 97 98 99 100 101 102 103 104 105 |
|
check_yellow_corner_position(cube)
¶
Checks that the yellow corner position step was correctly executed
Parameters:
Name | Type | Description | Default |
---|---|---|---|
cube |
Cube |
Cube to check |
required |
Source code in core/solver/beginner/__init__.py
80 81 82 83 84 85 86 87 88 89 90 91 |
|
check_yellow_cross(cube)
¶
Checks that the yellow cross step was correctly executed
Parameters:
Name | Type | Description | Default |
---|---|---|---|
cube |
Cube |
Cube to check |
required |
Source code in core/solver/beginner/__init__.py
56 57 58 59 60 61 62 63 64 65 66 |
|
check_yellow_edge(cube)
¶
Checks that the yellow edge step was correctly executed
Parameters:
Name | Type | Description | Default |
---|---|---|---|
cube |
Cube |
Cube to check |
required |
Source code in core/solver/beginner/__init__.py
68 69 70 71 72 73 74 75 76 77 78 |
|