When your minimax() function is called, you may assume that 'depthLimit'
is >= 1. I thought this had been stated in the handout, but evidently it
was not. (The assumption is written into main.c: if you try to run the
program with the paremter "d0", it will complain. But if you are bypassing
the provided main() and calling onePlayerGame() manually, you would be
skipping that check too.) It doesn't make sense for depthLimit to be 0,
because this would be equivalent to asking the computer to chose the best
move without even looking at the board.
So in short: you may assume that 'depthLimit' will be >= 1 in minimax().
Alexander