container/engine
coyotte508 edfebe1b18 tests: cover the tentative-turn model
Engine (wrapper.spec.ts), simulating the platform (persist only what toSave
returns):

- mid-turn buffers are tentative (toSave undefined, nothing persisted) and
  the full turn commits when it completes
- bare move objects are accepted as one-element buffers; empty buffers are
  never saved
- undo-by-truncation: replaying a shortened buffer from the committed base
  equals never having made the popped move (including undoing to empty with
  no server call)
- scripted 2-player auction: sail-to-island commits immediately, a bid is a
  single-move committed turn, the auctioneer's mid-turn loan stays tentative,
  accept/decline commit and cannot be undone once control passes on
- the saved log length never shrinks across committed states
- moveAI always returns saveable states across a random 25-turn game;
  dropPlayer results are committed

Viewer: replace the dead example unit test (missing HelloWorld component)
with a real Calculator test so vue-cli-service test:unit passes.
2026-08-16 21:06:28 +00:00
..
.vscode Add continuous integration 2021-07-04 00:06:50 +02:00
src tests: cover the tentative-turn model 2026-08-16 21:06:28 +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