// Cloned by Mikey Dowling on 19 Nov 2018 from Mind "Dab" by Mikey Dowling
// Please leave this clone trail here.
// Cloned by Mikey Dowling on 5 Nov 2018 from Mind "New Mind" by Mikey Dowling
// Please leave this clone trail here.
function Mind()
{
this.newRun = function()
{
};
this.getAction = function ( state ){
if ( state.stuckfor > 1 ) return ( AB.randomIntAtoB (0,3) );
if (AB.randomBoolean()){
if (state[0] > state[2]){return 1}
if (state[1]>state[3]) {return 2}
}
else {
if (state[0] < state[2]){return 0}
if (state[1]< state[3]) {return 3}
}
return (AB.randomIntAtoB(0,3));
};
this.endRun = function()
{
};
}