// Cloned by Adaam on 12 Nov 2018 from Mind "New Mind" by Adaam
// Please leave this clone trail here.
function Mind()
{
this.newRun = function()
{
};
this.getAction = function ( x )
{
var ai = x[0];
var aj = x[1];
var ei = x[2];
var ej = x[3];
//if enemy left of agent
if (ei < ai) return AB.randomPick(ACTION_RIGHT, AB.randomPick(ACTION_UP, ACTION_DOWN));
//if enemy right of agent
if (ei > ai) return AB.randomPick(ACTION_LEFT, AB.randomPick(ACTION_UP, ACTION_DOWN));
//if enemy above agent
if (ej > aj) return AB.randomPick(ACTION_DOWN, AB.randomPick(ACTION_LEFT, ACTION_RIGHT));
//if enemy below agent
if (ej < aj) return AB.randomPick(ACTION_UP, AB.randomPick(ACTION_LEFT, ACTION_RIGHT))
};
this.endRun = function()
{
};
}