A very simple chess engine
Go to file
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
.woodpecker Bootstrap project 2024-04-01 22:20:39 +01:00
src Pre-generate the magic bitboard seeds 2024-04-01 22:20:39 +01:00
utils/gdb Add 'Move' GDB pretty-printing 2024-04-01 22:20:39 +01:00
.envrc Bootstrap project 2024-04-01 22:20:39 +01:00
.gdbinit Add GDB pretty-printers 2024-04-01 22:20:39 +01:00
.gitignore Bootstrap project 2024-04-01 22:20:39 +01:00
Cargo.lock Bootstrap project 2024-04-01 22:20:39 +01:00
Cargo.toml Bootstrap project 2024-04-01 22:20:39 +01:00
flake.lock Bootstrap project 2024-04-01 22:20:39 +01:00
flake.nix Deny warnings in 'clippy' pre-commit hook 2024-04-01 22:20:39 +01:00