aboutsummaryrefslogtreecommitdiff
path: root/src/solvers/solutions.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Improve order of moves in NISS solutionsSebastiano Tronto2025-04-201-18/+62
| | | | | | | | Now the side that has more moves is written first. For example: write (U L F) B instead of B (U L F) This also fixes the test on appendsolutions, which used an older version of the function's signature.
* Improved logging, especially for solveSebastiano Tronto2025-04-191-8/+10
|
* Small rework of optimal vs maxsolsSebastiano Tronto2025-04-171-12/+3
| | | | | | | | | | | | | | I wanted to make the "optimal" and "maxsolutions" options mutually exclusive, but in the end I decided there is value in keeping both (e.g. for specifying a limit to the number of solutions when asking for "all" optimal"). Now optimal cannot be negative anymore, for the same reason of maxsolutions. The interface user (shell, UI) will have to take care of handling this in a way that makes sense for the user. Usually this means setting the maximum number of solutions to UINT_MAX (or a similar very high number) when the user wants "all optimal".
* Log solutions as they are foundSebastiano Tronto2025-04-151-2/+13
|
* simplified allowedmoves logicSebastiano Tronto2025-04-011-1/+1
|
* Tiny bugfix in solution writingSebastiano Tronto2025-03-251-4/+5
|
* Tiny fixSebastiano Tronto2025-03-251-4/+4
|
* Big cleanup for appendsolution()Sebastiano Tronto2025-03-241-5/+208
| | | | | | | | | | With this PR the appendsolution routine is extracted from the h48 solver and the new coordinate solver and made generic. This has many advantages: - less repetition (even if the two versions are different enough that *for now* it was not a big deal) - smaller h48/solve.h file, which is already a big beast - easier to test the appendsolution() routine separately
* Some safety with move arrays, small refactor appendcharSebastiano Tronto2025-03-221-0/+14

Generated with cgit - Back to sebastiano.tronto.net