Code viewer for Mind: SpaceMind

//THIS MIND DOESN'T DO ANYTHING. ALL IN THE WORLD
//With more time I would have like to put an "autopilot" mode in where theagent controls itself completely
 

function randomPick ( a, b )
{
 if ( randomBoolean() ) 
  return a;
 else
  return b;
}




function Mind() { 


//--- public functions / interface / API ----------------------------------------------------------


	this.newRun = function()
	{
	};

	this.endRun = function()
	{
	};



	this.getAction = function()		// x is an array of [ ai, aj, ei, ej ]
	{ 

		// if strictly move away, will get stuck at wall, so introduce randomness 

 		return ACTION_DOWN;
	};



}