mirror of
https://github.com/Noratrieb/minmax.git
synced 2026-01-14 15:25:08 +01:00
Add move ordering fixme
This commit is contained in:
parent
e693534bb9
commit
41d15d0c94
1 changed files with 1 additions and 0 deletions
|
|
@ -156,6 +156,7 @@ impl Game for Connect4 {
|
|||
|
||||
fn possible_moves(&self) -> impl Iterator<Item = Self::Move> {
|
||||
let board = self.clone();
|
||||
// FIXME: If we reorder the moves so that the potentially better ones (center) come first we get better.
|
||||
(0..WIDTH).filter(move |col| board[*col].is_none())
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue