Advertisement

Negamax Ai for TicTacToe

Started by March 04, 2013 02:35 PM
12 comments, last by alvaro 11 years, 4 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.

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

Advertisement

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