Fix: TypeError: ui.ai.current.cleanup is not a function
authorOleksandr Gavenko <gavenkoa@gmail.com>
Tue, 09 Sep 2014 18:39:52 +0300
changeset 24 079bcd734b68
parent 23 b19c9748c58c
child 25 2ef10a49a28f
Fix: TypeError: ui.ai.current.cleanup is not a function
ai.js
--- a/ai.js	Tue Sep 09 14:25:59 2014 +0300
+++ b/ai.js	Tue Sep 09 18:39:52 2014 +0300
@@ -82,8 +82,9 @@
     return bestDir;
 }
 /* Mark that next board will be unrelated to previous, so any stored precompution can be cleared. */
-ai.nextMaxScore.prototype.cleanup = function() { }
+ai.nextMaxValue.prototype.cleanup = function() { }
 
+
 
 ////////////////////////////////////////////////////////////////
 // N level deep on score value without random simulation.
@@ -137,6 +138,7 @@
 /* Mark that next board will be unrelated to previous, so any stored precompution can be cleared. */
 ai.deepMaxScore.prototype.cleanup = function() { }
 
+
 
 ////////////////////////////////////////////////////////////////
 // N level deep on score value + max value prefer corner,