1
0
Fork 0
This commit is contained in:
Paul-Nicolas Madelaine 2025-11-17 22:07:05 +01:00
parent 2994e9d7eb
commit 671ff331d3

View file

@ -96,13 +96,13 @@ impl Position {
}) })
} }
/// Returns the number of legal moves on the position. /// Returns the list of legal moves.
#[inline] #[inline]
pub fn legal_moves<'l>(&'l self) -> Moves<'l> { pub fn legal_moves<'l>(&'l self) -> Moves<'l> {
Moves::compute(self) Moves::compute(self)
} }
/// Counts the legal moves on the position. /// Returns the number of legal moves.
#[must_use] #[must_use]
#[inline] #[inline]
pub fn count_legal_moves(&self) -> usize { pub fn count_legal_moves(&self) -> usize {