ScratchAgarioBots / agario-bot

An AI designed to take less risks and have the highest possible odds of survival.
MIT License
13 stars 2 forks source link

Formula for food filtering #23

Open an-OK-squirrel opened 9 years ago

an-OK-squirrel commented 9 years ago

11, but better. Here's my idea:

Food value = distance + food size ^ 2 - distance to enemy (tweaking is needed, i know. But pretty good, right?)

matthewr6 commented 9 years ago

We should calculate the best angle and then find the closest food cluster/item/megacluster in that angle.

an-OK-squirrel commented 9 years ago

Both are good ideas.

matthewr6 commented 9 years ago

I can't figure out how to use the angle function already there :( How would you calculate distance to enemy? Distance to the closest enemy?

an-OK-squirrel commented 9 years ago

Closest, yes.

matthewr6 commented 9 years ago

Could you take a look at the angle functions and see how they work? I'm interested in using them but can't figure them out

an-OK-squirrel commented 9 years ago

Does it have trig?

matthewr6 commented 9 years ago

Probably.

an-OK-squirrel commented 9 years ago

Not doing it.

an-OK-squirrel commented 9 years ago

let's rewrite it

matthewr6 commented 9 years ago

Ok :P

an-OK-squirrel commented 9 years ago

:palm_tree:

PullJosh commented 9 years ago

Going to be gone for two days watching things explode and whatnot ('MURICA).

If this isn't finished by the time I get back, I can do it. ;)

matthewr6 commented 9 years ago

According to WIRED: Flying controversial technology through explosions. 'MURICA.

Today's actually one of the days I completely get free :P

an-OK-squirrel commented 9 years ago

Cool!

PullJosh commented 9 years ago

Will do tomorrow. Got to go watch more things explode soon.

an-OK-squirrel commented 9 years ago

'xplosions? Cool!

PullJosh commented 9 years ago

Hmm... Didn't realise how much trig was going to be involved.

Anyone up for a game of assignee hot potato?

matthewr6 commented 9 years ago

my brain does not want to do trig in the summer. at least stats don't require trig :P (I hope!)

If you tell me what angles you want to find, I can implement the trig functions.

an-OK-squirrel commented 9 years ago

Stat's don't as of right now.

NUUUUUU'UU!!! DO'NT YO'U DA'RE ADD APOSTROPHE'S WHE'RE TH'EY ARENT NEED'ED!!!!! I'T MAK'ES M'E VER'Y A'NGRY!!! WHA'T YO'U JU'ST SA'ID WA'S "Sta't i's d'o no't a's o'f rig'ht no'w."

AAAAAAARRRGGHHHHHHHHHHIEWOPOIPQPHIOZMKL;VZCKL;MAPJI!!!1!!!!!!!!1!!!1!

Your kind and fellow programmer, @PullJosh.

PullJosh commented 9 years ago

So'rry ab'out t'hat... :3

N'O NE'ED T'O BE SO'RRY.

EXTERMINAT'E HI'M.

@Firedrake969 (Grammar fixed by @an-OK-squirrel)

an-OK-squirrel commented 9 years ago

REVENG'E I'S MIN'E (chec'k th'e rep'o descriptio'n)

matthewr6 commented 9 years ago

:'3 AHAHA