[moves] Implement GeneratedMove::ply()

Returns a copy of the generated move. This is simplier to use than ::into().
This commit is contained in:
Eryn Wells 2025-06-13 11:27:10 -07:00
parent e9cea33c20
commit df49a4950b

View file

@ -30,6 +30,11 @@ impl GeneratedMove {
pub fn target(&self) -> Square {
self.ply.target_square()
}
#[must_use]
pub fn ply(&self) -> Move {
self.ply
}
}
impl std::fmt::Display for GeneratedMove {