[board] Add an option to display a board with ASCII characters

This commit is contained in:
Eryn Wells 2025-05-23 09:53:52 -07:00
parent ddd14e8999
commit a92ec9aba3
2 changed files with 15 additions and 2 deletions

View file

@ -63,7 +63,7 @@ impl Piece {
}
#[must_use]
fn to_unicode(self) -> char {
pub fn to_unicode(self) -> char {
match (self.color, self.shape) {
(Color::Black, Shape::Pawn) => '♟',
(Color::Black, Shape::Knight) => '♞',