bomberjam-backend v1.0.14
bomberjam-backend
| OS | Build status |
|---|---|
| Windows | |
| Ubuntu |
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. Visithttp://localhost:4321/adminto manage the games.Run (another) frontend-server only with
npm run frontendso you can live edit the frontend code insrc/frontend. This result is available athttp://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 indist/.Execute the tests with
npm run test.
Bot development
Edit
config.jsonto set your player name.Edit
bot/bot.jsso it returns an array of one to four bot function.Run
npm run training-browserto make your bot functions fight against themselves and see the game in your browser.Run
npm run training-exportto make your bot functions fight against themselves and dump everything that happened in a*.gamelogfile. A game server is not needed and the simulation is executed as fast as possible.
Edit
config.jsonthen usenpm run join-matchto join a room as a player on another server.