Negamax Ai for TicTacToe

Started by
12 comments, last by alvaro 10 years, 9 months ago

Thanks for the insight. So basically I start the scoring by calling getWon() and return maxscore, -maxscore or 0 depending if the game is won, lost or drawn. If this is not the case, the evluation function will check of other combinations.

I will implement this in the connect4 I'm doing to make sure that negamax works fine before adding extensions to it.

Advertisement

Yes, Connect Four is a much better game to learn alphabeta search. Checkers is also good.

does anyone here knows how to measure the efficiency of negamax? sorry newbie here

does anyone here knows how to measure the efficiency of negamax? sorry newbie here

What do you mean by "efficiency"? And why do you want to measure it?

This topic is closed to new replies.

Advertisement