This is a demo app for the battle-game server.
The strategy for this app is to perform the opposite action of last turn (ie. heal if last move was attack, attack if last move was heal)
To get up and running please follow the following steps
- clone the repo
- run
npm install
to install dependencies - add a config.js file to the root of the project. It should look like the following:
module.exports = {
host: <The WebSocket to connect to (http://server:port)>
}
- run
node index.js <id of player to connect as>
Please feel free to contribute to this project. Work on issues, open issues for bugs/enhancements and create pull requests. You can view the CONTRIBUTING document for more information