Skip to content

Commit

Permalink
Fixed scramble func
Browse files Browse the repository at this point in the history
  • Loading branch information
22003 committed Nov 25, 2024
1 parent 9d5c743 commit 5081344
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion project_3x3_rubik_solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,10 @@ int main()

void scramble() {
// Get the scramble moves from the user
cin.ignore(numeric_limits<streamsize>::max(), '\n'); // Clear any leftover newline
cout << "Enter the scramble: ";
string moves; getline(cin, moves);
string moves;
getline(cin, moves);

// Parse and apply the moves
string move = "";
Expand Down

0 comments on commit 5081344

Please sign in to comment.