diff --git a/src/components/board.rs b/src/components/board.rs index 3ee4443..2dc4644 100644 --- a/src/components/board.rs +++ b/src/components/board.rs @@ -109,7 +109,7 @@ pub fn BoardCreator( view! { "Start" }.into_any() } else if let Some((p_row, p_col)) = find_player(&board.get()) { match board.get().grid[row][col] { - CellContent::Empty if is_adjacent(p_row, p_col, row, col) => + CellContent::Empty if is_adjacent(p_row, p_col, row, col) && row <= p_row => view! {
@@ -161,11 +161,6 @@ pub fn BoardCreator( > "Cancel" - {move || finished.get().then(|| view! { - - })}
}