function Mind()
{
this.newRun = function()
{
};
this.getAction = function ( x )
{
var allyx = x[0];
var allyy = x[1];
var enemyx = x[2];
var enemyy = x[3];
if (( enemyx < allyx ) && (enemyy < allyy)) return ( AB.randomPick ( ACTION_RIGHT, ACTION_UP ) );
if (( enemyx < allyx ) && (enemyy > allyy)) return ( AB.randomPick ( ACTION_RIGHT, ACTION_DOWN ) );
if (( enemyx > allyx ) && (enemyy < allyy)) return ( AB.randomPick ( ACTION_LEFT, ACTION_UP ) );
if (( enemyx > allyx ) && (enemyy > allyy)) return ( AB.randomPick ( ACTION_LEFT, ACTION_DOWN ) );
return ( AB.randomIntAtoB (0,3) );
};
this.endRun = function()
{
};
}