[moves] Implement GeneratedMove::ply()
Returns a copy of the generated move. This is simplier to use than ::into().
This commit is contained in:
parent
e9cea33c20
commit
df49a4950b
1 changed files with 5 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue