Skip to content

Commit

Permalink
Code to not follow players. It's commented out.
Browse files Browse the repository at this point in the history
  • Loading branch information
Apostolique committed Aug 24, 2015
1 parent 2cabec9 commit dbcbcc4
Showing 1 changed file with 4 additions and 27 deletions.
31 changes: 4 additions & 27 deletions bot.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ SOFTWARE.*/
// @name AposBot
// @namespace AposBot
// @include http://agar.io/*
// @version 3.5671
// @version 3.568
// @grant none
// @author http://www.twitch.tv/apostolique
// ==/UserScript==

var aposBotVersion = 3.5671;
var aposBotVersion = 3.568;

//TODO: Team mode
// Detect when people are merging
Expand Down Expand Up @@ -239,7 +239,7 @@ u.isVirus = function(blob, cell) {
};

u.isSplitTarget = function(blob, cell) {
/*if (canSplit(cell, blob)) {
/*if (u.canSplit(cell, blob)) {
return true;
}*/
return false;
Expand All @@ -261,7 +261,7 @@ u.separateListBasedOnFunction = function(listToUse, blob) {
var isMe = u.isItMe(player, listToUse[element]);

if (!isMe) {
if (u.isFood(blob, listToUse[element])) {
if (u.isFood(blob, listToUse[element])/* && listToUse[element].isNotMoving()*/) {
//IT'S FOOD!
foodElementList.push(listToUse[element]);

Expand Down Expand Up @@ -684,11 +684,6 @@ u.addAngle = function(listToUse, range) {
newListToUse.splice(u.getAngleIndex(newListToUse, range[1][0]), 0, range[1]);
}

console.log("***********" + range[0] + ", " + range[1]);
for (var i = 0; i < newListToUse.length; i++) {
console.log(newListToUse[i][0] + ", " + newListToUse[i][1]);
}

return newListToUse;
};

Expand Down Expand Up @@ -950,10 +945,6 @@ u.findDestination = function(followMouse) {
stupidList = u.addWall(stupidList, player[k]);
}

for (var i = 0; i < stupidList.length; i++) {
console.log("AddWallDone: " + stupidList[i][0] + ", " + stupidList[i][1]);
}

for (var i = 0; i < badAngles.length; i++) {
var angle1 = badAngles[i][0];
var angle2 = u.rangeToAngle(badAngles[i]);
Expand All @@ -963,19 +954,11 @@ u.findDestination = function(followMouse) {
//stupidList.push([[45, true], [135, false]]);
//stupidList.push([[10, true], [200, false]]);

for (var i = 0; i < stupidList.length; i++) {
console.log("HelloWorld: " + stupidList[i][0] + ", " + stupidList[i][1]);
}

stupidList.sort(function(a, b){
//console.log("Distance: " + a[2] + ", " + b[2]);
return a[2]-b[2];
});

for (var i = 0; i < stupidList.length; i++) {
console.log("zzzzzzzzzzz: " + stupidList[i][0] + ", " + stupidList[i][1]);
}

//console.log("Added random noob stuff.");

var sortedInterList = [];
Expand All @@ -993,12 +976,6 @@ u.findDestination = function(followMouse) {
}
}

console.log("_________");
for (var i = 0; i < sortedInterList.length; i++) {
console.log(sortedInterList[i][0] + ", " + sortedInterList[i][1]);
}
console.log("_________");

for (var i = 0; i < obstacleList.length; i++) {
sortedObList = u.addAngle(sortedObList, obstacleList[i]);

Expand Down

0 comments on commit dbcbcc4

Please sign in to comment.