Code viewer for Mind: Complex Mind (clone by Aoi...

// Cloned by Chandrabhanu Singh Rawat on 8 Nov 2022 from Mind "Complex Mind (clone by Aoife Doherty) (clone by Aoife Doherty)" by Aoife Doherty 
// Please leave this clone trail here.
 
AB.mind.getAction=function(T){var c=T[0],A=T[1],I=T[2],N=T[3];return occupied(c-1,A)&&occupied(c+1,A)&&occupied(c,A-1)?ACTION_DOWN:occupied(c-1,A)&&occupied(c+1,A)&&occupied(c,A+1)?ACTION_UP:occupied(c,A-1)&&occupied(c,A+1)&&occupied(c-1,A)?ACTION_RIGHT:occupied(c,A-1)&&occupied(c,A+1)&&occupied(c+1,A)?ACTION_LEFT:N>A&&I<c?AB.randomPick(ACTION_UP,ACTION_RIGHT):N>A&&I>c?AB.randomPick(ACTION_UP,ACTION_LEFT):N>A&&I==c?AB.randomPick3(ACTION_RIGHT,ACTION_LEFT,ACTION_UP):I>c&&N==A?AB.randomPick3(ACTION_UP,ACTION_DOWN,ACTION_LEFT):N<A&&I<c?AB.randomPick(ACTION_DOWN,ACTION_RIGHT):N<A&&I>c?AB.randomPick(ACTION_DOWN,ACTION_LEFT):N<A&&I==c?AB.randomPick3(ACTION_RIGHT,ACTION_LEFT,ACTION_DOWN):I<c&&N==A?AB.randomPick3(ACTION_UP,ACTION_DOWN,ACTION_RIGHT):void 0};