aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-06-19 09:33:42 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-06-19 09:33:42 +0200
commit39e736f68c0d92b47bd124357a33c02d2bd2fdc5 (patch)
tree1caf215832681ce5da20c7a92fad96f7eed6de56 /tools
parent0e334e8659deaf61c3eef57e8ccd171a5becedb3 (diff)
downloadnissy-core-39e736f68c0d92b47bd124357a33c02d2bd2fdc5.tar.gz
nissy-core-39e736f68c0d92b47bd124357a33c02d2bd2fdc5.zip
Small fixes
Diffstat (limited to 'tools')
-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