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

// Cloned by Sagnik Chakraborty on 19 Oct 2022 from Mind "Complex Mind (clone by Amrita Jain)" by Amrita Jain 
// Please leave this clone trail here.
 


// Cloned by Amrita Jain on 11 Aug 2020 from Mind "Complex Mind" by Starter user 
// Please leave this clone trail here.
 



// =================================================================================================
// Sample Mind for more complex 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 

// Speed of run: Step every n milliseconds. Default 100.
AB.clockTick = 100;


// Length of run: Maximum length of run in steps. Default 1000.
AB.maxSteps = 1000;


// Take screenshot on this step. (All resources should have finished loading.) Default 50.
AB.screenshotStep = 50;

//.........Declare Global Constants............//

const gridsize = 100;                                               //length of each side of squares
const boxDensity = Math.trunc((gridsize * gridsize) / 3);  

//const TEXTURE_WALL = '/uploads/developdaniels/code.png';
//const TEXTURE_MAZE = '/uploads/developdaniels/error.jpg';
//const TEXTURE_AGENT = '/uploads/developdaniels/bug.png';
//const TEXTURE_ENEMY = '/uploads/developdaniels/developer.png';