diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-06-19 09:33:42 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-06-19 09:33:42 +0200 |
| commit | 39e736f68c0d92b47bd124357a33c02d2bd2fdc5 (patch) | |
| tree | 1caf215832681ce5da20c7a92fad96f7eed6de56 /tools/301_solve_file | |
| parent | 0e334e8659deaf61c3eef57e8ccd171a5becedb3 (diff) | |
| download | nissy-core-39e736f68c0d92b47bd124357a33c02d2bd2fdc5.tar.gz nissy-core-39e736f68c0d92b47bd124357a33c02d2bd2fdc5.zip | |
Small fixes
Diffstat (limited to 'tools/301_solve_file')
| -rw-r--r-- | tools/301_solve_file/solve_file.c | 2 |
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 | ||
