use std::fmt::Debug;
use crate::Boat;
#[derive(Clone, Copy, PartialEq)]
pub enum Shot {
Hit(Boat),
Miss
}
impl Debug for Shot {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Self::Hit(boat) => write!(f, "{:?}", boat),
Self::Miss => write!(f, "M"),
}
}
}