- 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) |
||
|---|---|---|
| .. | ||
| .vscode | ||
| src | ||
| .eslintrc.js | ||
| .gitignore | ||
| .travis.yml | ||
| index.ts | ||
| LICENSE | ||
| package.json | ||
| pnpm-lock.yaml | ||
| README.md | ||
| tsconfig.json | ||
| wrapper.ts | ||
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