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

Dev #653

Open
wants to merge 128 commits into
base: ogar-bot
Choose a base branch
from
Open

Dev #653

wants to merge 128 commits into from

Conversation

assmilkpenis
Copy link

give

stefnotch and others added 30 commits August 21, 2015 16:14
Made the 2 slightly faster
isItMe and getTeam improved
I improved some trivial things that JSLint likes to complain about... Also, tested it a little bit, it works.
And, I commented out the MAYDAY thing. I still have to change variable u.


P.S. If anything happens not to work, you will get all the complaints! XD
Changed a variable name and improved a few things.
Made the "not moving" code come in action ...This is a great step in bot's survivability as most of the times it dies chasing other cells instead of eating food around..But then, because now it only thinks stationary objects is food, this kills the split target function so I've moved things around in the code so that now it ONLY follows a blob if it's a split target , all else it will leave alone...Now it easily reaches very high scores :)
Seriously what are you waiting for?
Namely screenToGameX and screenToGameY
Comments for screenToGameX and screenToGameY
I've found these values yield better results
Apostolique and others added 30 commits April 17, 2016 16:35
Title says it all + formatting.
Title says it all + formatting.
This will make the bot perform worst near walls, but overall better everywhere else.
Wall code removed / Rounded merge timer
The blob is always centered in the fake borders (the restricted map).
This is true, except when you are close to a side/corner, when one or of the side will be the real borders. The wall code would work as it would only get activated when we are close to the real border and to make this work, I have modified the wall code so that the walls are detected from a smaller distance.
…e-go. Makes bot a little less laggy, and debugging easier.
Ads removed as it prevents the script working on https://agar.io and ads is definitely not good in the open-source perpective.
Wall code re-integration + modification - No ads - Custom log function
Some of the old // were there for the old console.log system which made the debug lines a comment. If they are commented out with the new log() function, we have to uncomment them as we can toggle all of them at once now but we couldn't before.
The number has been brought down to 1.1 for several reasons. If the value is mathematically perfect then the bot can hover above a virus (as it can't eat it, it won't think it's a threat) but often there are people under the virus and it will go for them (remember for the bot the virus doesn't exist). Also even if there is no player hiding under the virus, if it hovers over a virus, people tend to try and feed you just to make you pop.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.