gaia-project/engine/package.json
coyotte508 49fc40dc40 feat(engine): simultaneous sealed bidding - any order, hidden until all in (BGS contract)
- engine.sealedBidPendingSeats(): seats still owing a bid (undefined outside bid phases)
- move()/loadTurnMoves: accept silentBid/preferenceBid from ANY pending seat regardless of
  playerToMove (was: strict turn-order assert -> 'not your turn to play' for off-turn bidders)
- bid phases resolve on the LAST pending bid, not on the sequential turn walk
- move() attributes the log line to the actual bidder, not playerToMove
- wrapper.currentPlayer() returns number[] of pending seats during bid phases (the platform's
  /move route authorizes any seat in game.currentPlayers, which it fills from currentPlayer())
- deterministic auction tiebreaks (last faction-nominator wins) replace the seeded PRNG, so the
  resolution no longer needs map.rng - which crashed hosted simultaneous bidding on a reloaded
  engine ('map.rng is not a function'); bids + nominations alone now reproduce the result
- viewer: SealedBidPanel drops the waiting-for-turn gate (every pending seat bids at once) and
  seat-prefixes the emitted move so the engine can parse the bidder

engine 4.12.0, viewer 5.16.0
2026-09-08 10:03:24 +02:00

64 lines
1.8 KiB
JSON

{
"name": "@gaia-project/engine",
"version": "4.12.0",
"description": "Javascript engine for project gaia",
"main": "dist/index.js",
"types": "index.ts",
"source": "index.ts",
"repository": "git@github.com:boardgamers/gaia-project.git",
"publishConfig": {
"access": "public"
},
"files": [
"src",
"dist",
"index.d.ts",
"index.ts",
"tsconfig.json",
"wrapper.ts",
"index.js",
"wrapper.js"
],
"scripts": {
"prepublishOnly": "npm run test && npm run clean && tsc",
"build": "npm run clean && tsc",
"clean": "node -e \"require('fs').rmSync('dist', { recursive: true, force: true })\"",
"lint": "eslint . --ext .ts",
"test": "mocha -r ts-node/register src/**/*.spec.ts src/*.spec.ts *.spec.ts",
"test-single": "mocha -r ts-node/register",
"fuzz": "node -r ts-node/register src/fuzz/run.ts"
},
"contributors": [
"coyotte508 <coyotte508@gmail.com>",
"rzulian <riccardo.zulian@gmail.com>"
],
"license": "MIT",
"dependencies": {
"eventemitter3": "^3.1.0",
"hexagrid": "^2.1.1",
"lodash": "^4.17.15",
"seedrandom": "2.4.3",
"semver-compare": "1.0.0"
},
"devDependencies": {
"@types/chai": "^4.1.2",
"@types/lodash": "4.14.182",
"@types/mocha": "^2.2.48",
"@types/node": "^14.0.14",
"@types/seedrandom": "^2.4.27",
"@types/semver-compare": "^1.0.1",
"@types/shuffle-seed": "^1.1.0",
"@typescript-eslint/eslint-plugin": "^4.33.0",
"@typescript-eslint/parser": "^4.33.0",
"chai": "^4.1.2",
"eslint": "^6.8.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"mocha": "^5.2.0",
"shuffle-seed": "1.1.6",
"ts-node": "^5.0.1",
"typescript": "^4.9.5"
}
}