chessfriend/core/src
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
..
coordinates [board, core, moves, position] Implement castling 2025-05-19 16:50:30 -07:00
pieces [explorer, moves, core] Improve error handling in explorer 2025-05-19 14:18:31 -07:00
colors.rs [explorer, moves, core] Improve error handling in explorer 2025-05-19 14:18:31 -07:00
coordinates.rs [core, moves] Improve bounds checking of Square::neighbor 2025-06-07 20:06:14 -07:00
lib.rs [core] Random Number Generator 2025-06-02 15:44:38 -07:00
macros.rs [explorer, moves, core] Improve error handling in explorer 2025-05-19 14:18:31 -07:00
pieces.rs [board] Add an option to display a board with ASCII characters 2025-05-23 09:53:59 -07:00
random.rs [core] Random Number Generator 2025-06-02 15:44:38 -07:00
shapes.rs [bitboard, board, core, moves] Implement SliderMoveGenerator 2025-05-26 17:41:43 -07:00