ai.js
changeset 35 3d56325d7002
parent 29 30a09d50ae21
child 36 a18fc2601ce8
--- a/ai.js	Tue Sep 09 21:18:31 2014 +0300
+++ b/ai.js	Wed Sep 10 13:26:10 2014 +0300
@@ -13,10 +13,10 @@
 // Random AI.
 ////////////////////////////////////////////////////////////////
 
-ai.random = function(brdEngine) {
+ai.blindRandom = function(brdEngine) {
     this.brdEngine = brdEngine;
 }
-ai.random.prototype.analyse = function(brd) {
+ai.blindRandom.prototype.analyse = function(brd) {
     var origBrd = new this.brdEngine(brd);
     while (true) {
         var rnd = Math.floor(Math.random()*4);
@@ -25,7 +25,7 @@
     }
 }
 /* Mark that next board will be unrelated to previous, so any stored precompution can be cleared. */
-ai.random.prototype.cleanup = function() { }
+ai.blindRandom.prototype.cleanup = function() { }