Skip to content

Commit

Permalink
Update project_3x3_rubik_solver.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
22003 authored Nov 25, 2024
1 parent 875b35f commit 549940b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions project_3x3_rubik_solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -626,15 +626,15 @@ void orientYellowEdges() {
}
}

bool areYellowEdgesOriented() {
bool isYellowEdgesOriented() {
// Check if edges match their center colors
return (cube[FRONT][0][1] == cube[FRONT][1][1] &&
cube[RIGHT][0][1] == cube[RIGHT][1][1] &&
cube[BACK][0][1] == cube[BACK][1][1] &&
cube[LEFT][0][1] == cube[LEFT][1][1]);
}

bool areYellowCornersPositioned() {
bool isYellowCornersPositioned() {
int rotations = 0;
for (int i = 0; i < 4; i++) {
if (cube[FRONT][0][0] != cube[FRONT][0][2] ||
Expand Down

0 comments on commit 549940b

Please sign in to comment.