Halite Home

Node.js (JavaScript) Starter Package!


#1

Now live on site and game servers. Big thanks to @nmalaguti.


#2

For conversation regarding Javascript bots, see https://2016.forums.halite.io/c/programming-languages/javascript .


#3

I'm not entirely sure what I'm doing wrong, but I can't get the bot to run locally. I just get a

SyntaxError: Unexpected token {
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:373:25)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Function.Module.runMain (module.js:441:10)
    at startup (node.js:139:18)
    at node.js:974:3

if I run node MyBot.js and running the RunGame.bat just stops after
E:\Code\Halite-Jav aScript-Starter-Package>.\halite.exe -d "30 30" "node MyBot.js
" "node RandomBot.js"
node MyBot.js
node RandomBot.js

Any help would be appreciated.

Running node 4.5.0 on Windows 7


#4

This requires Node 7 or higher.


#5

Fantastic, that's fixed it. Thank you.