[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.
This commit is contained in:
Eryn Wells 2023-12-26 21:37:22 -07:00
parent 8d06cbf0f8
commit 19c48b9816
3 changed files with 63 additions and 25 deletions

View file

@ -1,5 +1,7 @@
mod diagram_formatter;
mod pieces;
mod position;
pub use diagram_formatter::DiagramFormatter;
pub use pieces::Pieces;
pub use position::Position;