#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub enum Notice {
ColumnFull,
GameFinished,
MoveRejected,
}
impl Notice {
pub const fn message(self) -> &'static str {
match self {
Self::ColumnFull => "That column is full, pick another one.",
Self::GameFinished => "The game is over, press r to play again.",
Self::MoveRejected => "That move was not accepted.",
}
}
}