Commit graph

5 commits

Author SHA1 Message Date
ea8f5f47fd [board] A few miscellaneous clean ups in the moves module 2024-01-06 20:43:18 -08:00
e2d93b8c3c [board] Replace implementations of the king and knight move generators with a more generic version
While implementing these move generators, I realized I was duplicating a lot of code. So, I started thinking about how to do less of that. I create a MoveGeneratorInternal trait that these move generators implement. This trait provides default implementations of several methods.

I also discovered that I needed a way to keep track of move sets per piece for each kind (shape) of piece. The new move generators, and the generators still to come, can now keep track of moves per piece separately in MoveSet instances.
2024-01-06 17:01:16 -08:00
14db74f212 Remove tests module 2024-01-06 16:45:13 -08:00
216140bdbc Update knight move generator 2024-01-06 16:39:24 -08:00
b95c34f51e [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.
2024-01-01 09:37:44 -08:00