Controller:var coinLocations = [];
var botCount = botData.length;
var arenaSize = botCount + 4;
var botPos = [];
var eventLog = [];
var botNotes = {
storeData: function(key, value) {
var bot = botData[botNotes.storeData.caller.index];
bot.kvpData[key] = value;
},
getData: function(key) {
var bot = botData[botNotes.getData.caller.index];
return bot.kvpData[key] || null;
}
};
function typeDecorate(value) {
var type = ({}).toString.call(value).match(/\s([a-zA-Z]+)/)[1];
if (type == "String") {
return "\"" + value + "\"";