Code viewer for Mind: Cloned Random

// Cloned by Enhanced on 17 Aug 2018 from Mind "Random" by Mathias Bazin 
// Please leave this clone trail here.
 
 
function Mind() 
{ 
	
	this.newRun = function()                  
	{
	};


	this.getAction = function ( state )		 
	{ 
	    let game = new Chess(state);
	    let moves = game.moves();
        let move = moves[Math.floor(Math.random() * moves.length)];
	    return ( move );		 		
	};

		 
	this.endRun = function()                 
	{
	};

}