5 edited body

# Blue team - Enemyeater

for (var i = 0; i < eNear.length; i++) {
var enemy = eNear[i];
var rx = enemy.x - x;
var ry = enemy.y - y;
if (rx == -1) {
if (ry == 1) {
return 4;
}
return 5;
}
if (rx == 0) {
if (ry == 1) {
return 2;
}
return 1;
}
if (rx == 1) {
if (ry == 1) {
return 3;
}
return 6;
}
}
return Math.floor(Math.random() * 67);


This little pixel looks for enimens around it and tries to eat it, if there is no pixel around it moves in a random direction. I'm looking forward to see what other peoples comes up with.

# Blue team - Enemyeater

for (var i = 0; i < eNear.length; i++) {
var enemy = eNear[i];
var rx = enemy.x - x;
var ry = enemy.y - y;
if (rx == -1) {
if (ry == 1) {
return 4;
}
return 5;
}
if (rx == 0) {
if (ry == 1) {
return 2;
}
return 1;
}
if (rx == 1) {
if (ry == 1) {
return 3;
}
return 6;
}
}
return Math.floor(Math.random() * 6);


This little pixel looks for enimens around it and tries to eat it, if there is no pixel around it moves in a random direction. I'm looking forward to see what other peoples comes up with.

# Blue team - Enemyeater

for (var i = 0; i < eNear.length; i++) {
var enemy = eNear[i];
var rx = enemy.x - x;
var ry = enemy.y - y;
if (rx == -1) {
if (ry == 1) {
return 4;
}
return 5;
}
if (rx == 0) {
if (ry == 1) {
return 2;
}
return 1;
}
if (rx == 1) {
if (ry == 1) {
return 3;
}
return 6;
}
}
return Math.floor(Math.random() * 7);


This little pixel looks for enimens around it and tries to eat it, if there is no pixel around it moves in a random direction. I'm looking forward to see what other peoples comes up with.

4 edited body

# Blue team - Enemyeater

for (var i = 0; i < eNear.length; i++) {
var enemy = eNear[i];
var rx = enemy.x - x;
var ry = enemy.y - y;
if (rx == -1) {
if (ry == 1) {
return 4;
}
return 5;
}
if (rx == 0) {
if (ry == 1) {
return 2;
}
return 1;
}
if (rx == 1) {
if (ry == 1) {
return 3;
}
return 6;
}
}
return Math.floatfloor(Math.random() * 6);


This little pixel looks for enimens around it and tries to eat it, if there is no pixel around it moves in a random direction. I'm looking forward to see what other peoples comes up with.

# Blue team - Enemyeater

for (var i = 0; i < eNear.length; i++) {
var enemy = eNear[i];
var rx = enemy.x - x;
var ry = enemy.y - y;
if (rx == -1) {
if (ry == 1) {
return 4;
}
return 5;
}
if (rx == 0) {
if (ry == 1) {
return 2;
}
return 1;
}
if (rx == 1) {
if (ry == 1) {
return 3;
}
return 6;
}
}
return Math.float(Math.random() * 6);


This little pixel looks for enimens around it and tries to eat it, if there is no pixel around it moves in a random direction. I'm looking forward to see what other peoples comes up with.

# Blue team - Enemyeater

for (var i = 0; i < eNear.length; i++) {
var enemy = eNear[i];
var rx = enemy.x - x;
var ry = enemy.y - y;
if (rx == -1) {
if (ry == 1) {
return 4;
}
return 5;
}
if (rx == 0) {
if (ry == 1) {
return 2;
}
return 1;
}
if (rx == 1) {
if (ry == 1) {
return 3;
}
return 6;
}
}
return Math.floor(Math.random() * 6);


This little pixel looks for enimens around it and tries to eat it, if there is no pixel around it moves in a random direction. I'm looking forward to see what other peoples comes up with.

3 added 13 characters in body

# Blue team - Enemyeater

for (var i = 0; i < eNear.length; i++) {
var enemy = eNear[i];
var rx = enemy.x - x;
var ry = enemy.y - y;
if (rx == -1) {
if (ry == 1) {
return 4;
}
return 5;
}
if (rx == 0) {
if (ry == 1) {
return 2;
}
return 1;
}
if (rx == 1) {
if (ry == 1) {
return 3;
}
return 6;
}
}
return Math.float(Math.random() * 6);


This little pixel looks for enimens around it and tries to eat it, if there is no pixel around it moves in a random direction. I'm looking forward to see what other peoples comes up with.

# Blue team - Enemyeater

for (var i = 0; i < eNear.length; i++) {
var enemy = eNear[i];
var rx = enemy.x - x;
var ry = enemy.y - y;
if (rx == -1) {
if (ry == 1) {
return 4;
}
return 5;
}
if (rx == 0) {
if (ry == 1) {
return 2;
}
return 1;
}
if (rx == 1) {
if (ry == 1) {
return 3;
}
return 6;
}
}
return Math.random() * 6


This little pixel looks for enimens around it and tries to eat it, if there is no pixel around it moves in a random direction. I'm looking forward to see what other peoples comes up with.

# Blue team - Enemyeater

for (var i = 0; i < eNear.length; i++) {
var enemy = eNear[i];
var rx = enemy.x - x;
var ry = enemy.y - y;
if (rx == -1) {
if (ry == 1) {
return 4;
}
return 5;
}
if (rx == 0) {
if (ry == 1) {
return 2;
}
return 1;
}
if (rx == 1) {
if (ry == 1) {
return 3;
}
return 6;
}
}
return Math.float(Math.random() * 6);


This little pixel looks for enimens around it and tries to eat it, if there is no pixel around it moves in a random direction. I'm looking forward to see what other peoples comes up with.

2 fixed code block, removed func def, int to var
1