Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Goes for food inside a virus #580

Open
kakol20 opened this issue Apr 18, 2016 · 25 comments
Open

Goes for food inside a virus #580

kakol20 opened this issue Apr 18, 2016 · 25 comments

Comments

@kakol20
Copy link

kakol20 commented Apr 18, 2016

When the bot is big enough, it sometimes goes for food inside a virus I've recently had an issue while using the bot, where it was trying to get a food in the centre of a virus and it split.

Maybe make a way for it to ignore food inside viruses.

@Drflash55
Copy link
Collaborator

Yeah, that's something I suggested a while ago to be fixed. There should be a function that tells the bot that if it detects food or a cell inside of a virus, and it's not small enough to eat it without popping, it should ignore it entirely.

@ermiyaeskandary
Copy link
Contributor

Being worked on.

@ermiyaeskandary
Copy link
Contributor

This function checks if it is food or not -

this.isFood = function(blob, cell) {
        if (!cell.isVirus() && this.compareSize(cell, blob, 1.33) || (cell.size <= 13)) {
            return true;
        }
        return false;
    };

@ermiyaeskandary
Copy link
Contributor

But it has no way of understanding if the food is in the virus - it only detects if it isn't a virus.

@ermiyaeskandary
Copy link
Contributor

brilliant geniuses who take care of this project will simply copy/paste my code in the bot like they always do

You are requesting for us to implement it - nobody asked for your help.

@ermiyaeskandary
Copy link
Contributor

@muratlahur if you stop acting like above, I will implement your code - I have no issue with you.

@ermiyaeskandary
Copy link
Contributor

@Drflash55 @FliiFe Can you test ? I can't test due to where I'm at.

@Drflash55
Copy link
Collaborator

@ermiyaeskandary Would love to, but my school firewall doesn't allow me to play Agar.io

Have to do it at home.

@ermiyaeskandary
Copy link
Contributor

@muratlahur I can't edit the bot just because you say it works. I need someone else to test it as well, just to make sure. @FliiFe Can you ?

@ermiyaeskandary
Copy link
Contributor

ermiyaeskandary commented Apr 20, 2016

@Drflash55 @Drflash55 @muratlahur I can test all of these in 40 minutes but if you can please do it earlier.

@ermiyaeskandary
Copy link
Contributor

@FliiFe Can you test this code?

@FliiFe
Copy link
Collaborator

FliiFe commented Apr 20, 2016

@ermiyaeskandary Yes, I will

@ermiyaeskandary
Copy link
Contributor

@FliiFe please post results here after testing.

@muratlahur
Copy link
Contributor

KNOWN BUG... As this effectively deletes the food around viruses , if there are many viruses around and you are right in the middle of them , the bot kinda drifts as it has no food to eat until it reaches some food..

@muratlahur
Copy link
Contributor

to avoid that ( and to get only the food under the virus deleted ) you should remove the * 5 ( this removes virus in a 5 x virus size diameter, if you delete that it will be just the virus size )

@FliiFe
Copy link
Collaborator

FliiFe commented Apr 20, 2016

@ermiyaeskandary Waiting for the bot to grow

@ermiyaeskandary
Copy link
Contributor

@FliiFe can you test now ?

@muratlahur
Copy link
Contributor

ermiya , FliiFe has the entire source now .. I suggest you get it as well and just test and play with that as everything is where it should be

@muratlahur
Copy link
Contributor

ESPECIALLY THE MULTICELL CONTROL JUST LOOK AT THE BRILLIANCE :D :D :D

@ermiyaeskandary
Copy link
Contributor

We don't want the whole source - we want what's new. Let's go step by step. FliiFe did the virus code work ? Let's start with this...

@ermiyaeskandary
Copy link
Contributor

Otherwise that's just copying your code.

@ermiyaeskandary
Copy link
Contributor

@FliiFe we think the same lol

@muratlahur
Copy link
Contributor

ok , but my code is apos bot + what's new .. so it's the same thing at the end lol ..

if you merge all the new things , you'll end up with my code anyway hehe

@muratlahur
Copy link
Contributor

anyhow..Look , I've given it all to you guys ....and I'm delighted that we understood each other on the ads and analytics..

so my job here is done really . .

I'll be @ my mail when you need me ..

Peeez out. . .

@muratlahur
Copy link
Contributor

by the way , do study my code . there are many many many changes that I can't list..

From which food to chase , to how to handle threats to , re-unite and re-merge system to alone in the dark etc etc etc..

it will take you a while to completely understand what I did ..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants