// basic Alpha-Beta search;
move bestmove;





























Initial call : alphabeta(depth, - infinite, infinite, isMyTurn);
不理解上面的代码的话,看看下面的极小极大搜索
极小极大搜索










































负极大搜索
极小极大搜索可以统一用负极大搜索代替



















width="728" scrolling="no" height="90" frameborder="0" align="middle" marginwidth="0" marginheight="0" src="http://download1.csdn.net/down3/20070601/01184120111.htm">