# HG changeset patch # User Oleksandr Gavenko # Date 1410277192 -10800 # Node ID 079bcd734b681b1dd71526308cf3ec25343f04a3 # Parent b19c9748c58ccb59202f3aba74dec9af5563a645 Fix: TypeError: ui.ai.current.cleanup is not a function diff -r b19c9748c58c -r 079bcd734b68 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,