-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
assmilkpenis
wants to merge
128
commits into
ogar-bot
Choose a base branch
from
dev
base: ogar-bot
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Dev #653
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 :)
Made the bot usable :P
Seriously what are you waiting for?
Namely screenToGameX and screenToGameY
Comments for screenToGameX and screenToGameY
I've found these values yield better results
Title says it all + formatting.
Title says it all + formatting.
Black line around border
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.
Forgot
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
give