[board] Add an option to display a board with ASCII characters
This commit is contained in:
parent
ddd14e8999
commit
a92ec9aba3
2 changed files with 15 additions and 2 deletions
|
@ -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) => '♞',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue