/battle-game-client

Primary LanguageJavaScriptISC LicenseISC

battle-game-client

Overview

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)

Getting started

To get up and running please follow the following steps

  1. clone the repo
  2. run npm install to install dependencies
  3. 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)>
    }
  1. run node index.js <id of player to connect as>

Contributing

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