container/engine
coyotte508 c72ebf77bd engine: seed upkeep container seizures from the game seed
Upkeep seizures picked containers with a bare Math.random, breaking the
platform guarantee that the same seed yields the same game and making
wrapper.replay diverge from the original whenever a seizure occurred
(seizures are log *events*, not moves, so nothing recorded the choice).

Seed a per-upkeep seedrandom stream from the persisted game seed plus the
visible log length — which uniquely identifies the upkeep within the game,
since each upkeep immediately follows its own Pass/Accept/Decline log
entry — so both live play and full replays reproduce the same seizures.

Typing removeRandom along the way exposed that warehouse/factory-store
seizure messages read .color on a ContainerOnStore (always undefined);
they now correctly read .piece.color.
2026-08-16 21:30:32 +00:00
..
.vscode Add continuous integration 2021-07-04 00:06:50 +02:00
src engine: seed upkeep container seizures from the game seed 2026-08-16 21:30:32 +00:00
.eslintrc.js Use lodash to simplify game generation 2021-07-04 02:36:34 +02:00
.gitignore Add continuous integration 2021-07-04 00:06:50 +02:00
.travis.yml Add continuous integration 2021-07-04 00:06:50 +02:00
index.ts ✨ (engine) Export moveAI for bot players 2026-08-12 21:40:04 +02:00
LICENSE Move engine code into engine subfolder 2021-07-03 21:23:00 +02:00
package.json engine: replace destructive undo with tentative-turn model 2026-08-16 20:55:44 +00:00
pnpm-lock.yaml Add continuous integration 2021-07-04 00:06:50 +02:00
README.md Mono-repo configuration 2021-07-03 21:39:13 +02:00
tsconfig.json ✅ (engine) Add full game sample 2021-10-14 22:07:27 +02:00
wrapper.ts engine: stop dropPlayer from clobbering simultaneous bidders 2026-08-16 21:29:01 +00:00

container-engine

Typescript engine for Container.

Setup

Requirements

Recent version of node / pnpm.

Dependencies

In the project's folder:

pnpm

Build

To compile Typescript into javascript:

pnpm build

Test

pnpm test