clear cache on a miss

master
melvin 2011-06-14 15:43:20 +08:00
parent 0524031500
commit 41c5bda808
1 changed files with 2 additions and 0 deletions

View File

@ -115,6 +115,8 @@ public class MCTSAI implements MagicAI {
System.err.println("***** cache hit! *****");
return candidate;
} else {
System.err.println("***** cache miss! *****");
cache.clear();
return new MCTSGameTree(-1, -1, -1);
}
}