Commit graph

3 commits

Author SHA1 Message Date
0d8653894a An attempt at making unit structs for Color and piece Shape
My idea was to implement traits on Piece that return sight lines, etc. This has
turned out to be much more complex than I thought it would be. Ultimately, I
don't think it's worth the effort.
2024-01-14 10:23:35 -08:00
626ac6245e [board] Copy the update_moves_with_ray macro into the rook move generator
This is an ugly copy/paste operation, but reduces the code in rook::ClassicalMoveGenerator somewhat.
2024-01-06 20:34:16 -08:00
359bab9173 [board] Implement rook::ClassicalMoveGenerator
Implement a rook move generator using the "classical" approach.
This approach walks each ray to find blockers and then masks out friendly pieces.
This is not efficient compared to other approaches, but it's much easier to implement.
2024-01-06 19:51:06 -08:00