use rand::Rng;
#[derive(PartialEq, Debug)]
pub enum Orientation {
Horizontal,
Vertical,
}
impl Clone for Orientation {
fn clone(&self) -> Self {
match self {
Self::Horizontal => Self::Horizontal,
Self::Vertical => Self::Vertical,
}
}
}
impl Orientation {
pub fn random() -> Self {
match rand::thread_rng().gen_bool(0.80) {
true => Self::Horizontal,
false => Self::Vertical,
}
}
}