Alpha-Beta 의사 코드를 배우고 있으며 알파 베타 잘라 내기에 대한 가장 간단한 의사 코드를 작성하려고합니다.Alpha-Beta 잘라내 기 의사 코드에 대한 Minimax 수정
나는 최소 최대에 대한 의사 코드를 작성했습니다 :
function minimax(node, depth)
if node is a terminal node or depth ==0
return the heuristic value of node
else
best = -99999
for child in node
best = max(best, -minimax(child, depth-1))
return best
는 그러나, 나는 알파 베타 가지 치기로 수정하는 방법을 모르겠어요. 누구든지 도와 줄 수 있습니까?