Blue Team - Fansy [38953] =============== var me = -1; var msg = getMsg(me); var register = msg ? JSON.parse(msg) : {}; var prevDanger = 0; var danger; var eScope = eNear; var myX = x; var myY = y; var put = setMsg; var get = getMsg; function kill(){ var move = -1; if(!eScope){return;} eScope.forEach(function(e){ if(move > -1){return move;} var xDist = Math.abs(e.x-myX); var yDist = Math.abs(e.y-myY); if(xDist < 2 && yDist < 2){ if(e.x == myX){ if(e.y == myY-1){move = 2;} else if(e.y == myY+1){move = 1;} } else if(e.x == myX-1){ if(e.y == myY-1){move = 4;} else if(e.y == myY+1){move = 5;} } else if(e.x == myX+1){ if(e.y == myY-1){move = 3;} else if(e.y == myY+1){move = 6;} } } }); return move; } function live(){ var move; if(!eScope){return;} var topHalf = (myY <= 64); eScope.forEach(function(e){ if(move > 0){return;} var xDist = Math.abs(e.x-myX); var yDist = Math.abs(e.y-myY); if(e.y == myY){ if(e.x == myX-1){move = (topHalf ? 5 : 4);} else if(e.x == myX+1){move = (topHalf ? 6 : 3);} } else if(xDist + yDist < 5){move = 0;} }); return move; } function evalDanger(){ danger = 0; if(register){prevDanger = register.d;} eScope.forEach(function(e){ var xDist = Math.abs(e.x-myX); var yDist = Math.abs(e.y-myY); danger += ((1/yDist) * (1/xDist)); }); register.d = danger; put(JSON.stringify(register)); return danger; } function distract(){ //run to the edge if safe, to the middle if not var safe = (danger <= prevDanger && danger < .01); var topHalf = myY <= 64; var leftSide = myX <= 64; if(myY == 64){register.f = !register.f;} if(myY < 10 || myY > 115){register.f = !register.f;} if(myX == 64){register.g = !register.g;} if(myX < 10 || myX > 115){register.g = !register.g;} put(JSON.stringify(register)); if(topHalf){ if(leftSide){ if(!safe){return 6;} return register.f ? register.g ? 6 : 5 : register.g ? 3 : 4; } else{ if(!safe){return 5;} return register.f ? register.g ? 5 : 6 : register.g ? 4 : 3; } } else { if(leftSide){ if(!safe){return 3;} return register.f ? register.g ? 3 : 4 : register.g ? 6 : 5; } else{ if(!safe){return 4;} return register.f ? register.g ? 4 : 3 : register.g ? 5 : 6; } } } evalDanger(); var whee = kill(); if(whee > -1){return whee;} whee = live(); if(whee > -1){return whee;} whee = distract(); return whee; A dumb little bot that runs around the board, doing his best to attract attention and draw chasers, and then run to the middle where (hopefully) he'll find somebody to help him, or he'll just stall the chaser and stop him from hunting. Doesn't seem to make a huge impact on overall score due to how powerful the Blue tagteam are, but at the very least I didn't make things worse! Shout in the next 8 hours if you want me to add anything useful to my message.