cpp studies - Rubik Engine Code
Brought to you by:
huskyducky
| File | Date | Author | Commit |
|---|---|---|---|
| Lib | 2025-08-04 |
|
[55a817] Initial commit |
| Rubik_Engine | 2025-08-04 |
|
[55a817] Initial commit |
| Rubik_Resolution_BFS | 2025-08-04 |
|
[55a817] Initial commit |
| Rubik_Resolution_DFS | 2025-08-04 |
|
[55a817] Initial commit |
| Test_Rubik_Engine | 2025-08-04 |
|
[55a817] Initial commit |
| Test_Rubik_Resolution | 2025-08-04 |
|
[55a817] Initial commit |
| .directory | 2025-08-04 |
|
[55a817] Initial commit |
| LICENSE | 2025-08-04 |
|
[55a817] Initial commit |
| README.md | 2025-08-04 |
|
[55a817] Initial commit |
Rubik_Engine simulate a Rubik Cube
compiled on gcc 9.3
Rubik_Engine::scan -> scan a cube's face
Rubik_Engine::commit -> update the cube with the scanned faces
Rubik_Engine::spin -> move the cube's blocks
Rubik_Engine::spinback -> move back the cube's blocks
Rubik_Engine::isFinished -> Indicate if the cube is finished (blocks original position)
Rubik_Engine::==(rubik) -> Compare two cubes
Rubik_Engine::Block_FacesList -> Return the faces and colors of specific block
Rubik_Engine::randomize -> Randomize the cube
Rubik_Engine::operator() -> Copy a cube
Rubik_Engine::reset -> The cube's blocks return to their original positions