From 5081344279430d274ec89a342365bf4512a75ad0 Mon Sep 17 00:00:00 2001 From: 22003 Date: Mon, 25 Nov 2024 10:45:22 +0400 Subject: [PATCH] Fixed scramble func --- project_3x3_rubik_solver.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/project_3x3_rubik_solver.cpp b/project_3x3_rubik_solver.cpp index 571e055..08c0df2 100644 --- a/project_3x3_rubik_solver.cpp +++ b/project_3x3_rubik_solver.cpp @@ -156,8 +156,10 @@ int main() void scramble() { // Get the scramble moves from the user + cin.ignore(numeric_limits::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 = "";