future_moves: remove turbofish
This commit is contained in:
parent
4444dd9a4a
commit
072dd6daf1
@ -105,14 +105,14 @@ impl FutureMoves {
|
|||||||
|
|
||||||
/// Returns indexes of leaf [`Move`]s, sorted by their depth (increasing order)
|
/// Returns indexes of leaf [`Move`]s, sorted by their depth (increasing order)
|
||||||
fn leaf_moves(&self) -> Vec<usize> {
|
fn leaf_moves(&self) -> Vec<usize> {
|
||||||
let mut indexes = (0..self.arena.len())
|
let mut indexes: Vec<usize> = (0..self.arena.len())
|
||||||
// we want to select all nodes that don't have children, or are lazy (need to maybe be regenerated)
|
// we want to select all nodes that don't have children, or are lazy (need to maybe be regenerated)
|
||||||
.filter(|&idx| {
|
.filter(|&idx| {
|
||||||
let got = &self.arena[idx];
|
let got = &self.arena[idx];
|
||||||
!got.is_trimmed && !got.tried_children && got.winner == Winner::None
|
!got.is_trimmed && !got.tried_children && got.winner == Winner::None
|
||||||
})
|
})
|
||||||
.filter(|&idx| self.is_connected_to_root(idx))
|
.filter(|&idx| self.is_connected_to_root(idx))
|
||||||
.collect::<Vec<usize>>();
|
.collect();
|
||||||
|
|
||||||
// we want to try and make the tree even in depth
|
// we want to try and make the tree even in depth
|
||||||
// by first generating children for younger moves
|
// by first generating children for younger moves
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user