I’ve been working on the Gold Rush ladder, and my latest submission seems to sometimes show me a loss, but when I review the match, it is a win.
So, I think there’s a component in my code that may be causing this, because I did not see this occur with my older code.
I’m not sure exactly what component might be causing it, but these are some additions I did:
Calculate the cosine of the coin to the enemy’s directional vector. SAMPLE:
var cos = Vector.normalize(Vector.subtract(enemy.pos, items[i].pos)).dot(Vector.normalize(Vector.add(enemy.pos, new Vector(this.enemyVectorX, this.enemyVectorY))));
Although I made a few other changes, they don’t apply anything that I haven’t previously done. The Vector.dot() seems to be the only new thing I introduced.
Link to a reported loss that shows as success when reviewing:
My username is “NoJuice4u”.