Skip to content

Instantly share code, notes, and snippets.

@whutch
whutch / mineavoider.js
Last active December 9, 2015 21:45
A Bot Land mine avoider
init = function () {
started = false;
count = 0;
}
update = function () {
if (!started && (x != 0 || y != 0))
moveTo(0,0);
else
started = true;
@whutch
whutch / cheatsheet.js
Last active December 9, 2015 21:05
Bot Land JS Cheat Sheet
// GLOBALS
life // bot's current life (out of 1000?)
x // bot's current x coordinate
y // bot's current y coordinate
arenaWidth
arenaHeight
sharedA
sharedB
sharedC