[board] Implement KnightMoveGenerator

Use the generated knight_moves BitBoards from bitboard::MoveLibrary to generate knight moves.

This commit doesn't yet implement computing bitboards for knight moves.
This commit is contained in:
Eryn Wells 2024-01-01 09:37:44 -08:00
parent fb6fd27453
commit b95c34f51e
4 changed files with 155 additions and 1 deletions

View file

@ -18,14 +18,22 @@ impl Square {
sq_constructor!(a2);
sq_constructor!(b1);
sq_constructor!(b2);
sq_constructor!(c3);
sq_constructor!(c5);
sq_constructor!(d2);
sq_constructor!(d3);
sq_constructor!(d4);
sq_constructor!(d5);
sq_constructor!(d6);
sq_constructor!(e2);
sq_constructor!(e3);
sq_constructor!(e4);
sq_constructor!(e5);
sq_constructor!(f2);
sq_constructor!(f3);
sq_constructor!(f4);
sq_constructor!(f5);
sq_constructor!(f6);
sq_constructor!(g3);
sq_constructor!(g5);
}