This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abstract type Stone end | |
struct Empty <: Stone end | |
struct Black <: Stone end | |
struct White <: Stone end | |
Base.show(io::IO, ::Black) = print(io, "⚈") | |
Base.show(io::IO, ::White) = print(io, "⚆") | |
Base.show(io::IO, ::Empty) = print(io, "·") |