« first day (5 days earlier)      last day (26 days later) » 

11:01 AM
I tried making a bot in the sandbox, but it doesn't move. Could anyone help me figure out why?
0
A: Red vs. Blue - Pixel Team Battlebots [sandbox]

haneefmubarakBlue Team - haneefmubarak // misc functions var c = function (a, b) { return a.d - b.d; } var d = function (a, b) { var dx = Math.abs (a.x - b.x); var dy = Math.abs (a.y - b.y); return Math.max (dx, dy); } var s = function (t, p) { for (var i = 0; i < p.length; i++) { ...

 
 
6 hours later…
5:29 PM
@haneefmubarak If you check Debug messages and look at your browser console, you'll see that your bot keeps having the error: SyntaxError: Unexpected token } {stack: (...), message: "Unexpected token }"}
I'm guessing you have an extra }
 
 
3 hours later…
8:08 PM
Two questions. First, is there a base other than the example code in the description? Second, are the matches run by the users, and scored this way, or do you run and score the matches?
 
@ASCIIThenANSI I'm not sure what you mean by base.
I score the matches. Reread the Scoring section of the spec
The example code is hardly a "base" to start with. It's just a quick think that shows how the variables should be used
 
8:32 PM
@Calvin'sHobbies By 'base', I mean a bot that already has basic functions (i.e, move randomly unless an enemy is above us).
So if I run the snippet, scores are unaffected?
 
You have to code those basic actions in yourself.
There is no "score" that you could mess up. I won't be choosing the winner for a week or two still and only the runs on my computer matter for "scoring".
 

« first day (5 days earlier)      last day (26 days later) »