Dedicated Simulator


#1

I was wondering if there was a dedicated simulator that was being distributed, I have several extra PCs as well as a Rasberry Pi and I would be interested in running simulations 24/7 if possible. If this already exists, could someone point me in the correct direction and to a place where I can get some setup info?

Thanks,
Zbot


#2

Yup, there is–it’s a command-line Node program. See headless_client.coffee.

To use it, you’ll need to create a login.coffee file next to it with your auth details. It’s a one-line file that looks like this:

module.exports = username: 'you@gmail.com', password: 'your_password'

#3

Ok, I got checked out the whole thing, got it running in Linux from the looks of it I get an error as soon as I try to run it.

/home/chris/codecombat/coco/headless_client.coffee:1
(function (exports, require, module, __filename, __dirname) { ###
                                                          ^
SyntaxError: Unexpected token ILLEGAL
    at Module._compile (module.js:439:25)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:901:3

#4

Have you done an npm install? I wonder if it’s not getting the local CoffeeScript install working. Can you find out which version of CoffeeScript you might be using? Oh yeah, and make sure you’re running with coffee:

> coffee headless_client.coffee