How to use principal variation search for checkers game along with negamax?

I am developing a checkers game in j2me. Uptill now, I am using Negamax, But its so slow(with alpha-beta cutoff). I was searching Stack and came to know the term"principal variation search". The post had this link: chessprogramming

The negamax which I am using is this:

 public double Negamax(int[] board, int depth, int turn, double alpha, double beta){
//check for depth, if its zero then call evaluation()
//generate moves
newScore = -Negamax(newBoard, depth - 1, opponent(turn), -beta, -alpha);
//alpha-beta cutoff
}

The problem: Puesocode from Wiki is: pvs

Now I am confused how to use pvs. Should I use it inside negamax, Or instead of negamax. Its header is also confusing, as it accepts a node, not the whole chackers board.

function pvs(node, depth, α, β)

I am not willing to use transposition table, as I am developing a mobile app. Thanks

链接地址: http://www.djcxy.com/p/9630.html

上一篇: 问题与MiniMax到Alpha

下一篇: 如何将主要变体搜索与negamax一起使用跳棋游戏?