Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Minimum depth

0 views
Skip to first unread message

Alexander Smith

unread,
Apr 3, 2004, 4:43:05 PM4/3/04
to
Hi everyone,

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

0 new messages