Code viewer for Mind: Complicated Circle Mind

// Cloned by Eoin McLaughlin on 8 Nov 2018 from Mind "New Mind" by Eoin McLaughlin 
// Please leave this clone trail here.
 
 
function Mind() 
{
    var goIn = true
    var goForward = false
    var goOut = false
    var goBack = false
    var i = 0
    var moves = [0, 1, 2, 3]
	
	this.newRun = function()                  
	{
	};


	this.getAction = function ( state )		 
	{ 
	    
	  console.log(state)
	  if (goIn)
	    return ( moves[i] % moves.length);		 		


	  if (goForward)
	  {
	    return ( moves[i+1] % moves.length);
	  }

	
	  if (goOut)
	  {
	    return ( moves[i+2] % moves.length);	
	  } 

	  if (goIn)
	  {
	    return ( moves[i+3] % moves.length);
	  } 
	  i += 1
	    
	};
	this.endRun = function()                 
	{
	};

}
//(i+1)%moves.length