container/engine
coyotte508 da7491450c engine: replace destructive undo with tentative-turn model
- wrapper move() now accepts the whole current turn as a Move[] buffer
  (bare move objects still accepted) and replays it from the committed state
- new toSave(): returns undefined while the turn is tentative so the platform
  neither persists mid-turn states nor grants time increments for them
- engine tracks commitment in G.newTurn: tentative iff the last visible log
  entry is a move by a player still in currentPlayers; Pass/Accept/Decline/Bid
  always commit (bids and bid-phase loans live in the hidden log and were
  never undoable)
- delete MoveName.Undo entirely (move type, engine case, available-moves
  offerings): the saved log is now append-only
- wrapper moveAI() plays atomic moves until the turn commits (bot driver and
  dropPlayer auto-play require committed states); dropPlayer marks committed
- logSlice() now includes the stripped state so the acting player's viewer
  receives tentative states via the move response
- bump to 2.0.0 (new major: move payload shape changed, Undo removed)
2026-08-16 20:55:44 +00:00
..
.vscode Add continuous integration 2021-07-04 00:06:50 +02:00
src engine: replace destructive undo with tentative-turn model 2026-08-16 20:55:44 +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: replace destructive undo with tentative-turn model 2026-08-16 20:55:44 +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