Cubie
¶
Cubie
¶
Represents a subcube.
It contains the colors of its faces in the faces
dicrionary.
__init__(self)
special
¶
Initializes a new Cubie that has no facelets
Source code in core/solver/Cubie.py
11 12 13 14 15 |
|
__str__(self)
special
¶
Gets the string representation of this cubie including its faces and colors
Returns:
Type | Description |
---|---|
[type] |
String representation of this cubie |
Source code in core/solver/Cubie.py
38 39 40 41 42 43 44 45 |
|
color_facing(self, color)
¶
Finds the face that has the given color
Parameters:
Name | Type | Description | Default |
---|---|---|---|
color |
TileColor |
Color to search for |
required |
Returns:
Type | Description |
---|---|
str |
str: Face with the given color |
Source code in core/solver/Cubie.py
17 18 19 20 21 22 23 24 25 26 27 |
|
get_name(self)
¶
Gets the name of this cubie
Returns:
Type | Description |
---|---|
str |
str: Name of the cubie |
Source code in core/solver/Cubie.py
29 30 31 32 33 34 35 36 |
|