1.0.14 • Published 4 years ago

bomberjam-backend v1.0.14

Weekly downloads
3
License
ISC
Repository
-
Last release
4 years ago

bomberjam-backend

OSBuild status
WindowsWindows build status
UbuntuUbuntu build status

First, install npm dependencies with npm i && cd src && cd frontend && npm i && cd .. && cd ...

Backend and frontend development

  • Run the server and the frontend with npm run server. Visit http://localhost:4321/admin to manage the games.

  • Run (another) frontend-server only with npm run frontend so you can live edit the frontend code in src/frontend. This result is available at http://localhost:4322/admin.

  • Compile a minified JavaScript version of the server, the client and the simulator by using npm run build. The output will be available in dist/.

  • Execute the tests with npm run test.

Bot development

  • Edit config.json to set your player name.

  • Edit bot/bot.js so it returns an array of one to four bot function.

    • Run npm run training-browser to make your bot functions fight against themselves and see the game in your browser.

    • Run npm run training-export to make your bot functions fight against themselves and dump everything that happened in a *.gamelog file. A game server is not needed and the simulation is executed as fast as possible.

  • Edit config.json then use npm run join-match to join a room as a player on another server.

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago