diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-10-10 19:49:48 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-10-10 19:49:48 +0200 |
| commit | 5e291466fbbc45aed74f67a1b2e555d1f0c44d8f (patch) | |
| tree | ebe96c88599d55ee1b986412f1d0456f55f950a9 /src/core/cube.h | |
| parent | d4fadc24ee1993104bac7fd854ed6ca83f60ee66 (diff) | |
| download | nissy-core-5e291466fbbc45aed74f67a1b2e555d1f0c44d8f.tar.gz nissy-core-5e291466fbbc45aed74f67a1b2e555d1f0c44d8f.zip | |
Improved error messages and add some comments in nissy.h
Diffstat (limited to 'src/core/cube.h')
| -rw-r--r-- | src/core/cube.h | 14 |
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 | ||
| 68 | inconsistent_ep: | 68 | inconsistent_ep: |
| 69 | LOG("Inconsistent EP\n"); | ||
| 70 | return false; | ||
| 71 | inconsistent_cp: | 69 | inconsistent_cp: |
| 72 | LOG("Inconsistent CP\n"); | ||
| 73 | return false; | ||
| 74 | inconsistent_eo: | 70 | inconsistent_eo: |
| 75 | LOG("Inconsistent EO\n"); | ||
| 76 | return false; | ||
| 77 | inconsistent_co: | 71 | inconsistent_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 | ||
| 117 | issolvable_parity: | 111 | issolvable_parity: |
| 118 | LOG("EP and CP parities are different\n"); | ||
| 119 | return false; | ||
| 120 | issolvable_eo: | 112 | issolvable_eo: |
| 121 | LOG("Odd number of flipped edges\n"); | ||
| 122 | return false; | ||
| 123 | issolvable_co: | 113 | issolvable_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 | ||
