function Mind()
{
this.newRun = function()
{
};
this.getAction = function ( state )
{
console.log(state);
var GoodX = state[0];
var BadX = state[1];
var GoodY = state[2];
var BadY = state[3];
var currDistance = distance(state);
console.log(distance(state));
return ( 0 );
};
distance = function(points)
{
var a = points[0] - points[2];
var b = points[1] - points[3];
var c = Math.sqrt( a*a + b*b );
return c;
}
potentialMoves = function(points)
{
nextMoves = [];
nextMoves.push(points[0] + 1);
nextMoves.push(points[0] - 1);
nextMoves.push(points[1] + 1);
nextMoves.push(points[1] - 1);
return nextMoves;
}
this.endRun = function()
{
};
}