Code viewer for Mind: Simple Mind (clone by Vine...

// Cloned by Vineet Sajwan on 22 Oct 2022 from Mind "Simple Mind (clone by Vineet Sajwan)" by Vineet Sajwan 
// Please leave this clone trail here.
 


// Cloned by Vineet Sajwan on 22 Oct 2022 from Mind "Simple Mind" by Starter user 
// Please leave this clone trail here.
 



// =================================================================================================
// Sample Mind for simple starter World  
// =================================================================================================

// World tells us agent position and enemy position
// World does not tell us of existence of walls
// if return invalid move (not empty square) World just ignores it and we miss a turn 


 

 

	AB.mind.getAction = function ( x )		// x is an array of [ ai, aj, ei, ej ]
	{ 
	 return  ( AB.randomIntAtoB (0,4) );		// Ignore enemy. Just move randomly 
	};