Archived from groups: comp.ai.games (More info?)
I noticed some pseudocode from wikipedia
(http://en.wikipedia.org/wiki/Alpha-beta_pruning) that does these
checks in alpha beta:
min:
if beta <= alpha return alpha
max:
if beta <= alpha return beta
Then there's code at
http://www.cs.dartmouth.edu/~rus/courses/AI/AI-03/Lectures/l6.html that
says this:
min:
If beta >= alpha return alpha
max:
If alpha >= beta return beta
As you can see, the checks for min differ. Anyone know who's right?
I noticed some pseudocode from wikipedia
(http://en.wikipedia.org/wiki/Alpha-beta_pruning) that does these
checks in alpha beta:
min:
if beta <= alpha return alpha
max:
if beta <= alpha return beta
Then there's code at
http://www.cs.dartmouth.edu/~rus/courses/AI/AI-03/Lectures/l6.html that
says this:
min:
If beta >= alpha return alpha
max:
If alpha >= beta return beta
As you can see, the checks for min differ. Anyone know who's right?