wobblyhead hg > minor_monsters
comparison tools/simulate.js @ 36:a464bd43b76c 1.0.0
clean documentation rewrite
| author | ark |
|---|---|
| date | 2026-10-21 22:34 +0200 |
| parents | 75deda08db90 |
| children |
comparison
equal
deleted
inserted
replaced
| 35:0d40f346059c | 36:a464bd43b76c |
|---|---|
| 1 #!/usr/bin/env node | 1 #!/usr/bin/env node |
| 2 // headless simulation of the game with scripted players (doc/balance.md, | 2 // headless simulation of the game with scripted players (doc/balancing.md). |
| 3 // balancing). runs the game logic from www/ after a build: data/config.js, | 3 // runs the game logic from www/ after a build: data/config.js, data/maps.js |
| 4 // data/maps.js and the js/ files of the simulation, with MM.audio replaced | 4 // and the js/ files of the simulation, with MM.audio replaced by a stub. writes temp/preview/simulate.txt, the results as json in |
| 5 // by a stub. writes temp/preview/simulate.txt, the results as json in | |
| 6 // temp/preview/simulate.json (read by tools/balance.py), and prints a | 5 // temp/preview/simulate.json (read by tools/balance.py), and prints a |
| 7 // summary. | 6 // summary. |
| 8 // | 7 // |
| 9 // usage: node tools/simulate.js [options] | 8 // usage: node tools/simulate.js [options] |
| 10 // | 9 // |
