chessfriend/moves
Eryn Wells e2ce778247 [core, moves] Improve bounds checking of Square::neighbor
Remove the <n> argument from this method. I think it was a bad idea to begin with
but at the time I was looking for an expedient solution for getting neighbor
squares 2 squares away.

Overhaul bounds checking in this method so horizontal (west and east) bounds are
checked in addition to vertical (north and south) bounds. For the diagonal
directions in particular, it was easy to generate some bogus neighbor squares
because this method didn't check for wrapping when calculating horizontal
neighbors.
2025-06-07 20:06:14 -07:00
..
src [core, moves] Improve bounds checking of Square::neighbor 2025-06-07 20:06:14 -07:00
tests [position, moves] Implement some castling tests 2025-05-21 08:25:49 -07:00
Cargo.toml [moves] Clean up implementation of Move and export Kind enum 2025-05-19 14:19:05 -07:00