Commit graph

14 commits

Author SHA1 Message Date
cf14cb4fcd fix(analysis): enable manual saved-analysis decisions across seats 2026-11-10 08:29:02 +00:00
94d125ba2d fix: make concurrent charging opt-in and show pending charge turns 2026-10-27 17:38:53 +01:00
a6166b0714 fix: resolve tinkering tile choices for dropped players 2026-10-25 09:32:38 +01:00
ca5e0318ea fix(engine): forget faction boards when replaying into the faction selection
Engine.replayedTo carries each player's final faction variant over so the
replayed faction selection loads the boards the game was played with. When
the replay stops before the selection ends, the variant was left on the
player and the end of the selection loaded it on whatever faction was
picked next: undoing back into the faction selection and picking another
faction gave it the previous faction's board.

Reset the variant of players whose board isn't loaded at that point.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 12:35:40 +02:00
c97ea03ee0 fix(engine): keep player settings when replaying a game
Engine.replayedTo rebuilds the game from the move history and only
carried each player's name, dropped flag and variant over, so
wrapper.replay reset players' auto-charge/income/brainstone settings to
the defaults, and automove ran with those defaults. BGS saves the
result of replay when a player undoes a move against bots and for admin
replays, so the settings were silently lost for good.

Carry the settings over with the other per-player data. Saved analyses
still start every player with default settings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 12:35:40 +02:00
f047ffb15d Support analysis permissions and translated chat in both viewers 2026-09-21 20:32:47 +02:00
43b3df9055
Support saved BGS analyses (#336)
* Support saved BGS analyses with manual control of every player

* Hide live charge settings and chat in platform analyses
2026-09-21 16:18:07 +02:00
f440b30c09
feat: add moveAI for bot players (#323) 2026-08-12 22:38:54 +02:00
coyotte508
656d029506 🏗️ (all) Change the way faction versions are stored
Now the "version" field is required for variants. When the engine is created, the factionVersion field is automatically set to the latest version for the variant.

When a player choose their faction, the faction customization is stored, with the version (not used, just metadata) and now even handlers from the variant are saved (but they can't use local scope for now, they need to be pure functions).

In the engine, apart from the faction variant name & version number, nothing is stored.

During a replay, the player will load its own faction first, if not possible then the matching faction corresponding to engine's faction variant / version.
2021-09-08 17:55:20 +02:00
Gregor Zeitlinger
abc1f3f0a4 ✨ (engine) add power movement to log details 2021-08-03 19:51:35 +02:00
coyotte508
c813e7422e
Additional wrapper test (#70)
* ✅ (engine) Add returning booster test

* 👽 (viewer) Update engine log test case
2021-04-21 06:10:02 +02:00
coyotte508
8b734174e6 ✅ (engine) Add test in wrapper for move completion 2021-04-20 11:55:21 +02:00
Gregor Zeitlinger
09e09f60c3
✨ (engine) New auto-charge mode: "always ask" (#48)
* ✨ (engine) new auto-charge mode: "always ask"

* ✨ (engine) new auto-charge mode: "always ask"

* ✨ (engine) new auto-charge mode: "always ask"

* ✨ (engine) new auto-charge mode: "always ask"

* ✨ (engine) new auto-charge mode: "always ask"

* ✨ (engine) new auto-charge mode: "always ask"
2021-04-05 12:06:06 +02:00
coyotte508
37d8dbe7f3 🚚 (engine) Move to a subfolder 2021-02-19 00:20:17 +01:00
Renamed from wrapper.spec.ts (Browse further)