From 468532bb6285909e1d27af0589e3913821166dc3 Mon Sep 17 00:00:00 2001 From: nils <48135649+Nilstrieb@users.noreply.github.com> Date: Mon, 16 Jan 2023 08:52:34 +0100 Subject: [PATCH] Move ordering --- minmax-rs/src/connect4/board.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/minmax-rs/src/connect4/board.rs b/minmax-rs/src/connect4/board.rs index 0414ef9..2b83e9c 100644 --- a/minmax-rs/src/connect4/board.rs +++ b/minmax-rs/src/connect4/board.rs @@ -156,8 +156,7 @@ impl Game for Connect4 { fn possible_moves(&self) -> impl Iterator { 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()) + [3, 2, 4, 1, 5, 0, 6].into_iter().filter(move |col| board[*col].is_none()) } fn result(&self) -> State {