Prepare game updates and single-process PM2 deployment

This commit is contained in:
2026-10-14 19:13:36 +09:00
parent 4f24129e29
commit 22792bc2b4
50 changed files with 1546 additions and 197 deletions
+3 -2
View File
@@ -21,9 +21,10 @@ test('local bot runs countdown, turns, result and persistence without Socket.IO'
assert.equal(h.controller.view().phase, 'selecting');
assert.equal(await h.controller.submitAction('blast'), false);
assert.equal(await h.controller.submitAction('charge'), true);
await h.clock.advance(4000); assert.deepEqual(h.controller.view().energy, [1, 1]);
assert.equal(h.controller.view().phase, 'revealing');
assert.deepEqual(h.controller.view().energy, [1, 1]);
await h.clock.advance(1200); assert.equal(await h.controller.submitAction('blast'), true);
await h.clock.advance(4000);
await Promise.resolve();
assert.equal(h.controller.view().finished?.winnerIndex, 0);
assert.equal(h.controller.view().saveStatus, 'saved');
assert.equal(h.recorded.length, 1); assert.equal(h.recorded[0].outcome, 'win');