在alpha beta算法中隨機選擇一個節點的孩子比按順序選擇它們有更好的機會獲得一個截斷? 這裏是僞代碼,我的加法標記爲***。 function alphabeta(node, depth, α, β, maximizingPlayer)
if depth = 0 or node is a terminal node
return the heuristic value
想要在我的othello遊戲中模擬我的AI的下一步行動,但不是僅僅返回下一步,而是在原板上進行所有動作,而不是模擬克隆遊戲結束。 public class GameState implements Cloneable{
private Node[][] board; // Game board
private int scorePlayer, scoreAI; // Player s