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

// Cloned by Sagnik Chakraborty on 19 Oct 2022 from Mind "Complex Mind (clone by Paul McBrien)" by Paul McBrien 
// Please leave this clone trail here.
 
AB.mind.getAction=function(A){var T=A[0],I=A[1],n=A[2],N=A[3];return N<I?AB.randomPick(ACTION_UP,AB.randomPick(ACTION_RIGHT,ACTION_LEFT)):N>I?AB.randomPick(ACTION_DOWN,AB.randomPick(ACTION_RIGHT,ACTION_LEFT)):n<T?AB.randomPick(ACTION_RIGHT,AB.randomPick(ACTION_UP,ACTION_DOWN)):n>T?AB.randomPick(ACTION_LEFT,AB.randomPick(ACTION_UP,ACTION_DOWN)):AB.randomIntAtoB(0,3)};