18. (本体)
make_move (p, m, teban)
val = -AlphaBeta( p, -beta, -alpha, depth-1, ply+1, teban*(-1))
move_back(p, m, teban)
if val > alpha
alpha = val # alpha update
update_pv( p, m, val) # update Principal Variation
if val >= beta
break # beta cutoff
end
end
18