aboutsummaryrefslogtreecommitdiff
path: root/src/core/cube.h
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2024-10-10 19:49:48 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2024-10-10 19:49:48 +0200
commit5e291466fbbc45aed74f67a1b2e555d1f0c44d8f (patch)
treeebe96c88599d55ee1b986412f1d0456f55f950a9 /src/core/cube.h
parentd4fadc24ee1993104bac7fd854ed6ca83f60ee66 (diff)
downloadnissy-core-5e291466fbbc45aed74f67a1b2e555d1f0c44d8f.tar.gz
nissy-core-5e291466fbbc45aed74f67a1b2e555d1f0c44d8f.zip
Improved error messages and add some comments in nissy.h
Diffstat (limited to '')
-rw-r--r--src/core/cube.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/core/cube.h b/src/core/cube.h
index 2252a85..a3c3e14 100644
--- a/src/core/cube.h
+++ b/src/core/cube.h
@@ -66,16 +66,10 @@ isconsistent(cube_t cube)
66 return true; 66 return true;
67 67
68inconsistent_ep: 68inconsistent_ep:
69 LOG("Inconsistent EP\n");
70 return false;
71inconsistent_cp: 69inconsistent_cp:
72 LOG("Inconsistent CP\n");
73 return false;
74inconsistent_eo: 70inconsistent_eo:
75 LOG("Inconsistent EO\n");
76 return false;
77inconsistent_co: 71inconsistent_co:
78 LOG("Inconsistent CO\n"); 72 /* We used to do more logging here, hence the 4 different labels */
79 return false; 73 return false;
80} 74}
81 75
@@ -115,13 +109,9 @@ issolvable(cube_t cube)
115 return true; 109 return true;
116 110
117issolvable_parity: 111issolvable_parity:
118 LOG("EP and CP parities are different\n");
119 return false;
120issolvable_eo: 112issolvable_eo:
121 LOG("Odd number of flipped edges\n");
122 return false;
123issolvable_co: 113issolvable_co:
124 LOG("Sum of corner orientation is not multiple of 3\n"); 114 /* We used to do more logging here, hence the 3 different labels */
125 return false; 115 return false;
126} 116}
127 117

Generated with cgit - Back to sebastiano.tronto.net