BGS lets the only human of a game against bots take back their last saved move (protocol 0.10.0). The top toolbar shows an undo control while BGS reports it available and the board is live (hidden in replays, analysis, to spectators, once the game is over and while a move is pending); it asks BGS to undo, which then sends the earlier position. That position resets local selections (shown colony, selected amoeba, new amoeba number), also when the moves were taken back elsewhere, and drops replay positions cached beyond it. On the narrowest phones the header tightens to fit the extra control. The chat preview emulates it locally. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
30 lines
983 B
JSON
30 lines
983 B
JSON
{
|
|
"name": "@boardgamers/primordial-soup",
|
|
"version": "0.2.21",
|
|
"private": true,
|
|
"type": "module",
|
|
"main": "dist/engine.js",
|
|
"files": [
|
|
"dist/engine.js"
|
|
],
|
|
"scripts": {
|
|
"build": "node scripts/build.mjs",
|
|
"test": "node --test test/*.test.js",
|
|
"dev": "node scripts/dev.mjs",
|
|
"test:browser": "pnpm build && node test/analysis-chat-browser.mjs && node test/preferences-browser.mjs && node test/new-genes-browser.mjs && node test/turn-controls-browser.mjs && node test/replay-browser.mjs && node test/undo-browser.mjs",
|
|
"test:locales": "node scripts/check-locales.mjs viewer/localization && node --test scripts/localization.test.mjs"
|
|
},
|
|
"dependencies": {
|
|
"@boardgamers/protocol": "0.10.0",
|
|
"@noble/hashes": "2.0.1"
|
|
},
|
|
"devDependencies": {
|
|
"esbuild": "0.25.12",
|
|
"playwright": "1.62.1",
|
|
"prettier": "3.6.2"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "ssh://git@codeberg.org/boardgamers/primordial-soup.git"
|
|
}
|
|
}
|