之前在极大化极小算法minimax说得不够清楚而且也没有附带伪代码,所以这里再写一篇专门关于剪枝的blog进行补充
http://blog.youkuaiyun.com/joshualiunsw/article/details/52131507
————————————————————————————————————————————————
现在已经有了普通的minimax的伪代码, 由于下文中需要用到α, β所以对应地将其转换成a(alpha)、b(beta)的形式
function minimax(node, depth) if node is a terminal node or depth = 0 return the heuristic value of node if the adversary is to play at node let b := +∞ foreach