0
negamax /極小節點我寫的AI球員黑白棋遊戲,我決定用NegaMax或極小做到這一點。 Pseodocode:創建爲黑白棋/奧賽羅遊戲
function negamax(node, depth, α, β, color)
if node is a terminal node or depth = 0
return color * the heuristic value of node
else
foreach child of node
val := -negamax(child, depth-1, -β, -α, -color)
{the following if statement constitutes alpha-beta pruning}
if val≥β
return val
if val≥α
α:=val
return α
但我需要發送節點到這個功能,我如何創造這個節點?如創建節點與所有候選條件爲移動狀態,然後在節點大家可能的移動創建子節點?
如果你可以幫助α,β值...
所以我需要重寫Node.getChildren()方法來讓他回到新的董事會狀態? – JohnDow
是,一套新的董事會狀態 – dfb