I just tested it. memcpy into a buffer seems to be faster than a step by step solution. This allows sorting. I will share it soon but I think I found something completely new in mailslots. A way to generate moves in a mailslot board representation without a single if statement.hgm wrote: ↑Mon Nov 29, 2021 10:53 pm There is no reason to prepare a list; the squares along the ray can be generated incrementally by just adding the step to the to-square (rather than incrementing the list index and fetching the next square). This is what micro-Max does. Basically this is directly searching the moves that come out of the move generator, as this is how the inner loop of the move generator generated the to-squares.
The algorithms now seem to be:
Mailslot O(n) - raywalking
Bitboard O(1) - fancy hashing/pext
I have found it this week: A mailslot algorithm that is O(1)!
The wiki is missing a comparison between slider algorithms that state the O notation and Memory consumption in a table to compare algorithms