|
c3e3ebfa97
|
Iterate by Rank and File when building a diagram
|
2024-01-06 16:25:03 -08:00 |
|
|
41421dddbb
|
[board] Clean up interfaces of pieces and square structs
|
2023-12-29 09:17:33 -08:00 |
|
|
72dabfe73f
|
[board] A couple small changes to support the explorer crate
- DiagramFormatter::new
- Make board::position public
|
2023-12-28 15:11:57 -07:00 |
|
|
b9ba2629c4
|
[board] Fix the King's position in the Position::starting()
I wrote a test of the starting position for DiagramFormatter and discovered that Position::starting() was placing the king incorrectly. Fixed it!
|
2023-12-27 08:01:44 -07:00 |
|
|
19c48b9816
|
[board] Implement a DiagramFormatter that writes a graphical diagram of a Position
Remove fmt::Display from Position and move display to a DiagramFormatter type that implements that trait and writes a position to a formatter.
|
2023-12-26 21:37:22 -07:00 |
|