Skip to content

Instantly share code, notes, and snippets.

@hpoit
hpoit / cormullion.jl
Last active January 9, 2018 16:59
go board
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, "·")