Ok, hopefully the necro justifies the double post, because I'm about to post Barbara's winning strategy for the 3x3 case.
First, let's simplify things by naming the matrix and its entries:
M=\begin{bmatrix}
m_{11} & m_{12} & m_{13} \\
m_{21} & m_{22} & m_{23} \\
m_{31} & m_{32} & m_{33}
\end{bmatrix}
WLOG, Alan's first move will be either m
11 = 0 or m
11 = 1.
Case 1: m11 = 0Barbara plays m
12 = 0. If Alan plays any move other than placing a non-zero in m
13, Barbara plays m
13 = 0 and wins. So, let Alan play WLOG m
13 = 1. Notice that now
\det M = m_{21}m_{32} - m_{22}m_{31}, so Barbara's next two moves, no matter what Alan plays, will be m
21 = 0 followed by either m
22 = 0 or m
31 = 0.
Case 2: m11 = 1In this case, Barbara plays m
22 = 0. Let's now break Alan's second move down to a few sub-cases written in their most general terms (I put Alan's non-zero moves as 1, but the strategy holds no matter what he chooses).
Case 2.1: m12 = 0, m21 = 0, m23 = 0, m32 = 0Clearly, in all these cases, Alan moved has lined two zeroes up, so Barbara just has to put the third zero in the row or column.
Case 2.2: m13 = 0 (equivalent to m31 = 0)Barbara plays m
33 = 0, forcing Alan to play m
23 = 1 to avoid an all-zero 3rd column. Barbara then plays m
32 = 0, and Alan can't block both the 2nd column and the 3rd row from becoming all-zero at Barbara's next turn.
Case 2.3: m33 = 0Barbara plays m
13 = 0, and it continues as for Case 2.2.
Case 2.4: m12 = 1 (equivalent to m21 = 1)Barbara plays m
23 = 0. To keep the 2nd row from being all zeroes, Alan must play m
21 = 1. Barbara responds with m
33 = 0, forcing Alan to play m
13 = 0. At this point,
\det M = m_{32}, so Barbara just sets this to zero to win.
Case 2.5: m13 = 1 (equivalent to m31 = 1Barbara plays m
32 = 0, and Alan must avoid the zero 2nd column by playing m
12 = 1. Now
\det M = m_{23}m_{31} - m_{21}m_{33}, so like in Case 1 Barbara just zeros the two terms out one at a time.
Case 2.6: m23 = 1 (equivalent to m23 = 1)Barbara plays m
32 = 0, and like Case 2.5 Alan must play m
12 = 1. This time,
\det M = m_{31} - m_{21}m_{33}, so Barbara plays m
31 = 0 and then one of m
21 = 0 or m
33 = 0.
Case 2.7: m33 = 1Barbara plays m
12 = 0 and Alan must respond with m
32 = 1, and this turns into a rearrangement of the second half of Case 2.6.
And that's it. If I've missed a case, or given incorrect reasoning, feel free to correct me.