Commit graph

6 commits

Author SHA1 Message Date
21b5266789 [board] Implement position::builders::MoveBuilder
This builder takes a Position and a Move, validates the move, and makes the move
in that position. Its build() method returns a new Position with the move made.
2024-01-21 09:23:39 -08:00
7b8ce3b31d [board] Derive Copy for Move 2024-01-21 09:21:48 -08:00
4fe9be036d [board] Reexport AlgebraicMoveFormatter from the move module 2024-01-17 08:47:48 -08:00
771081a5df [board] Derive Clone and Debug for MoveBuilder 2024-01-17 08:47:35 -08:00
e2f8faad3d [board] Implement Default for move::move_formatter::Style 2024-01-17 08:47:16 -08:00
177a4e32da [board] Implement a u16 based Move
Replace building a Move with the Move struct itself with a MoveBuilder that
builds a Move and returns it.

Update the tests and move formatter.
2024-01-16 18:03:27 -08:00