board.js
changeset 149 2839f8227a38
parent 148 93c122e0ea90
child 150 cab72d83a6e6
--- a/board.js	Fri Sep 26 01:40:08 2014 +0300
+++ b/board.js	Fri Sep 26 02:21:28 2014 +0300
@@ -66,7 +66,7 @@
     }
     return score;
 }
-BoardArr.prototype.max = function() {
+BoardArr.prototype.maxVal = function() {
     var max = 0;
     for (var i = 0; i < 4; i++) {
         for (var j = 0; j < 4; j++) {
@@ -175,7 +175,7 @@
     }
     return score;
 }
-BoardArr2d.prototype.max = function() {
+BoardArr2d.prototype.maxVal = function() {
     var max = 0;
     for (var i = 0; i < 4; i++) {
         for (var j = 0; j < 4; j++) {
@@ -904,7 +904,7 @@
     score += lookup[brd.dd];
     return score;
 }
-BoardObj.prototype.max = function() {
+BoardObj.prototype.maxVal = function() {
     var brd = this.brd;
     var max = brd.aa;
     max = Math.max(max, brd.ab);