摘要:
function alphabeta(node, depth, α, β, Player) ifdepth = 0 or node is a terminal node return the heuristic value of node ifPlayer = MaxPlayer for each child of node α := max(α, alphabeta(child, depth-1, α, β, not(Player) )) if β ≤ α break (* Beta cut-off *) return α else for each child of node β :=.. 阅读全文