seer/src/movegen
Bruno BELANYI 52772167a6 Pre-generate the magic bitboard seeds
My naive RNG implementation takes about ~40 seconds to generate the
magic bitboards for both bishops and rooks (or ~1 second in release
mode).

If we pre-generate the seeds, we can instead make it ~instantaneous.

The self-modifying code is inspired by matklad [1].

[1]: https://matklad.github.io/2022/03/26/self-modifying-code.html
2024-04-01 22:20:39 +01:00
..
naive Remove all useless 'allow(unused)' 2024-04-01 22:20:39 +01:00
wizardry Pre-generate the magic bitboard seeds 2024-04-01 22:20:39 +01:00
mod.rs Tighten item visibilities 2024-04-01 22:20:39 +01:00
moves.rs Pre-generate the magic bitboard seeds 2024-04-01 22:20:39 +01:00