aboutsummaryrefslogtreecommitdiff
path: root/src/solvers/coord (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix integer conversions in code, tests and some toolsc-portabilitySebastiano Tronto2026-04-064-25/+30
|
* Use macro for [static N]Sebastiano Tronto2026-04-047-59/+59
|
* Added cornersx solverSebastiano Tronto2025-12-234-1/+79
|
* Add coordinate solvers for cornersh48-corner-estimateSebastiano Tronto2025-12-195-0/+87
|
* Fix duplicate solutions, overflow in maxsols and improve symmetry reduction ↵Sebastiano Tronto2025-11-242-8/+10
| | | | | | | | | | | | for H48. This commit fixes two bugs: - A bug that caused duplicates solutions for symmetric scrambles. - An overflow in the maxsols parameter for the H48 solver, which caused it to find much fewer solutions than existed. Moreover, the H48 solvers has been improved by reducing by symmetry not only from the starting position, but also up to the first 4 moves.
* Added HTR solverSebastiano Tronto2025-08-0612-68/+164
|
* Added DRFIN solverSebastiano Tronto2025-08-0511-74/+522
|
* Move is_eo_even to more appropriate moduleSebastiano Tronto2025-08-011-14/+0
|
* Added CPEPE coordinate in preparation of full DRFIN solverSebastiano Tronto2025-08-011-0/+86
|
* Fixed nasty bugSebastiano Tronto2025-08-011-0/+2
|
* Reworked coordinate solver axis specificationSebastiano Tronto2025-08-0110-61/+24
|
* Added solvetests for DRSLICESebastiano Tronto2025-08-011-2/+2
| | | | | This also changes the rotation axes for DRSLICE, so that the move U gets transformed to R and F instead of L and B.
* Fixed bug and added testsSebastiano Tronto2025-07-311-32/+25
|
* Fix switch logic in coord solverSebastiano Tronto2025-07-311-0/+8
|
* Fix bugSebastiano Tronto2025-07-311-22/+58
|
* Fixed bug with counting solutions for coordinate solverSebastiano Tronto2025-07-301-7/+3
|
* added drslice coordinateSebastiano Tronto2025-07-3011-52/+197
|
* All coordinates unsignedSebastiano Tronto2025-07-294-11/+7
|
* Cleanup some TODOsSebastiano Tronto2025-07-292-10/+2
|
* Make failed assert exit immediatelySebastiano Tronto2025-07-281-1/+1
|
* Renamed drslice drfinnoeSebastiano Tronto2025-07-173-26/+26
|
* Comments for drsliceSebastiano Tronto2025-07-171-4/+15
|
* Small optimization for coord gendataSebastiano Tronto2025-07-171-5/+10
|
* Working drslice (same results as nissy-classic)Sebastiano Tronto2025-07-174-0/+137
|
* Removed VLA notation from function parameters.Sebastiano Tronto2025-05-274-16/+15
| | | | | I found out that this gives undefined behavior when then size is 0. Better not to have it at all, it is confusing for other developers anyway.
* Do all loggin in main threadSebastiano Tronto2025-05-231-3/+2
| | | | | | | | | | | | | | | | | Before this committ, the solver (via the generic solution-appender routines in src/solve/solutions.h) and the H48 data generator did some logging in the worker threads, without using any locks. This was not nice, but in practice it did not cause any problem, because the log messages were rare. However, this turned out to be a problem when building to WASM, because web workers do not have access to the main JS memory, and therefore they cannot call functions from the main JS. This includes not only the callback functions for logging, but also those for polling the status of the solver (run / pause / stop). This commit fixes this at the cost or being somewhat inelegant: the solutions are not logged as they are found, but only every 500ms.
* Refactored checkdataSebastiano Tronto2025-05-199-19/+123
| | | | | | | | Relevant changes include: - Changed the signature of nissy_checkdata(). - Removed expected_distribution.h from tools; this data is now included in each solver's src/ code. - Removed distribution check for cocsep; may add back later.
* Refactor solver dispatch and checkdataSebastiano Tronto2025-05-183-48/+34
|
* Added stop / pause / resume solve to APISebastiano Tronto2025-04-291-5/+9
|
* NISSSebastiano Tronto2025-04-254-4/+4
|
* Adjusted solvers, fixed bugSebastiano Tronto2025-04-231-8/+9
|
* Always use unsigned char * for data buffersSebastiano Tronto2025-04-217-87/+95
| | | | | Before this commit I was inconsistently using one of void *, char * and uint8_t *.
* Improved logging, especially for solveSebastiano Tronto2025-04-193-19/+22
|
* Small rework of optimal vs maxsolsSebastiano Tronto2025-04-171-6/+7
| | | | | | | | | | | | | | 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/+2
|
* Some minor changes to the interface.Sebastiano Tronto2025-04-082-3/+3
| | | | | | | | | - Simplified logger to accept only a string, not a variadic list of args like printf(). This can still use some improvement, but now it is easier to use from other languages. - Fixed some misuses of the logger (wrong types etc) - Renamed some constants - Fixed some typos in comments.
* Added dreo coordinate solverSebastiano Tronto2025-04-029-14/+168
|
* Make single-use struct field anonymousSebastiano Tronto2025-04-011-12/+10
|
* Make symcoord logic genericSebastiano Tronto2025-04-014-115/+191
|
* Fix mismatched type in function prototype and implementationSebastiano Tronto2025-04-012-2/+2
|
* simplified allowedmoves logicSebastiano Tronto2025-04-011-2/+12
|
* Optimize genptable for coordinate solve (20x speedup)Sebastiano Tronto2025-03-292-19/+99
|
* DR coordinate solverSebastiano Tronto2025-03-286-14/+231
|
* More safety with pointers using VLA function parametersSebastiano Tronto2025-03-252-9/+26
|
* Added NISS to coord solverSebastiano Tronto2025-03-257-95/+272
|
* Big cleanup for appendsolution()Sebastiano Tronto2025-03-241-96/+51
| | | | | | | | | | 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-224-51/+41
|
* Filter solutions for coordinate solver and fix orderingSebastiano Tronto2025-03-193-3/+7
|
* BugfixSebastiano Tronto2025-03-141-4/+14
|
* Added checkdata for coord EOSebastiano Tronto2025-03-141-0/+24
|

Generated with cgit - Back to sebastiano.tronto.net