Final, the minimax_connect.java is done. I fix the error in level 10 with playing human

17 views
Skip to first unread message

Raymond Ye

unread,
May 15, 2012, 5:49:42 PM5/15/12
to ai_co...@googlegroups.com
Hi All,

Test it in your computer, and see what kind of error is come out.

Dont change the level 10 to any thing else. I have test it level 10 is the optimal depth to win MonteCarloAI. Thanks.

@Ricardo
Your idea to terminate the loop is good idea to fix the problem, but you put it in the wrong place, so that the AI do not select the optimal solution. So I fix it. What I do is to create an if statement in evaluate, but it is not in the for loop. So there are 5 original if statement, I add one more for terminate and total has 6 if eles statement. If it terminate, I will do the same thing as level == depth. And the code is working.


minimax_connect.java
Reply all
Reply to author
Forward
0 new messages