aboutsummaryrefslogtreecommitdiff
path: root/tools/301_solve_file
diff options
context:
space:
mode:
Diffstat (limited to 'tools/301_solve_file')
-rw-r--r--tools/301_solve_file/solve_file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/301_solve_file/solve_file.c b/tools/301_solve_file/solve_file.c
index 5976dc0..2fc3a98 100644
--- a/tools/301_solve_file/solve_file.c
+++ b/tools/301_solve_file/solve_file.c
@@ -20,6 +20,7 @@ void run(void) {
20 for (i = 0; i < N; i++) { 20 for (i = 0; i < N; i++) {
21 printf("%" PRId64 ". %s\n", i+1, scrambles[i]); 21 printf("%" PRId64 ". %s\n", i+1, scrambles[i]);
22 printf("Solving scramble %s\n", scrambles[i]); 22 printf("Solving scramble %s\n", scrambles[i]);
23 fflush(stdout);
23 if (nissy_applymoves(NISSY_SOLVED_CUBE, scrambles[i], cube) 24 if (nissy_applymoves(NISSY_SOLVED_CUBE, scrambles[i], cube)
24 != NISSY_OK) { 25 != NISSY_OK) {
25 printf("Invalid scramble\n"); 26 printf("Invalid scramble\n");
@@ -32,6 +33,7 @@ void run(void) {
32 printf("No solution found\n"); 33 printf("No solution found\n");
33 else 34 else
34 printf("Solutions:\n%s\n", sol); 35 printf("Solutions:\n%s\n", sol);
36 fflush(stdout);
35 } 37 }
36} 38}
37 39

Generated with cgit - Back to sebastiano.tronto.net