2 Unanswered Topics

Remove Filter
Member Avatar for
Member Avatar for Sugmuffen

I'm trying to implement a MiniMax algorithm with alpha/beta pruning. Totally stuck and can't see where I'm wrong. The class MiniMax contains a State and an Action. The method getAction returns an Action (supposedly the best action to take). The Game object has two methods, isTerminal returns true if the …

0
139
Member Avatar for awslc

Hello guys, I (attempted to) incorporate the alpha-beta pruning functionality with Negamax in C# and was wondering if you could review my included code for any obvious errors? Negamax Function: public int NegaMax(int[,] board, int depth, int alpha, int beta) { Interlocked.Increment(ref _negaMaxCtr); if (depth == 0) { Interlocked.Increment(ref _zeroCtr); …

0
244

The End.