Update headless_client.coffee

This commit is contained in:
Popey Gilbert 2015-04-17 17:38:51 +01:00
parent 4d36c7ee3e
commit 5a35854ce8

View file

@ -3,7 +3,7 @@ This file will simulate games on node.js by emulating the browser environment.
In order to use, followed these steps: In order to use, followed these steps:
1. Setup dev environment as usual 1. Setup dev environment as usual
2. Create a `login.coffee` file in coco which contains: 2. Create a `login.coffee` file in coco which contains:
module.exports = username: 'email@example.com', password: 'your_password123' module.exports = username: 'email@example.com', password: 'your_password'
3. Run `./node_modules/coffee-script/bin/coffee ./headless_client.coffee` 3. Run `./node_modules/coffee-script/bin/coffee ./headless_client.coffee`
Alternatively, if you wish only to simulate a single game run `coffee ./headless_client.coffee one-game` Alternatively, if you wish only to simulate a single game run `coffee ./headless_client.coffee one-game`
Or, if you want to always simulate only one game, change the line below this to "true" Or, if you want to always simulate only one game, change the line below this to "true"