Code viewer for Mind: Ca318 Brain time
 
function Mind() 
{ 
	
    this.getAction = function(state)
        { 
            var i = state[0];
            var j = state[1];
            var y = state[2];
            var z = state[3];

            if (z < j)
            return (AB.randomPick (ACTION_UP, AB.randomPick(ACTION_RIGHT,ACTION_LEFT)));
            
            if (z > j)         
            return (AB.randomPick (ACTION_DOWN, AB.randomPick(ACTION_RIGHT,ACTION_LEFT)));
            
            if (y < i)        
            return (AB.randomPick (ACTION_RIGHT, AB.randomPick(ACTION_UP,ACTION_DOWN)));
            
            if (y > i)        
            return (AB.randomPick (ACTION_LEFT, AB.randomPick(ACTION_UP,ACTION_DOWN))); 
        };
}