Current section

Files

Jump to
gchess src castle_rights.gleam
Raw

src/castle_rights.gleam

pub type CastleRights {
Yes
No(ply: Int)
}
pub fn to_bool(castle_rights: CastleRights) -> Bool {
case castle_rights {
Yes -> True
No(_) -> False
}
}