[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:
parent
8d06cbf0f8
commit
19c48b9816
3 changed files with 63 additions and 25 deletions
|
@ -1,5 +1,7 @@
|
|||
mod diagram_formatter;
|
||||
mod pieces;
|
||||
mod position;
|
||||
|
||||
pub use diagram_formatter::DiagramFormatter;
|
||||
pub use pieces::Pieces;
|
||||
pub use position::Position;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue