Code viewer for Mind: Test File

// Cloned by Ian Gilligan on 12 Nov 2018 from Mind "New Mind" by Ian Gilligan 
// Please leave this clone trail here.
 
function Mind() 
{ 
	
	this.newRun = function()                  
	{
	    var grid = Array.from(Array(324), () => 0);
	    
	};


    this.getAction = function ( x )         // x is an array of [ ai, aj, ei, ej ]
    { 
        var ai = x[0];
        var aj = x[1];
        var ei = x[2];
        var ej = x[3];

        return(ACTION_STAYSTILL);
        
    };

		 
	this.endRun = function()                 
	{
	};
	
	this.gridPosition = function(x, y)
	{
	    return(     ((x - 1)    * 18)      + (y - 1)    );
	};
	
}

//AB.clockTick       = 100;
//AB.maxSteps        = 1000;
//AB.screenshotStep  = 50;