I try to develop a boardgame that is similar to Gobang. Two players try to get 5 of their chips in a row on the gameboard. The computer's moves have to be calculated by using an Alpha-Beta-Algorithm and this is where I'm stuck. I can't get my mind around this algorithm, I also tried an easier Min-Max-Algorithm, but it also isn't working.
Does anyone has a working example of one of these algorithms in java-code? Maybe with evaluation function and for a similar game?