TAP version 13
# Subtest: P1 the board always has 16 cells, each 0 or a power of two >= 2
ok 1 - P1 the board always has 16 cells, each 0 or a power of two >= 2
  ---
  duration_ms: 369.928634
  type: 'test'
  ...
# Subtest: P2 an invalid move changes nothing: board, score, undo charges, random state
not ok 2 - P2 an invalid move changes nothing: board, score, undo charges, random state
  ---
  duration_ms: 36.972602
  type: 'test'
  location: '/tmp/phase2/B/tests/properties.test.js:100:1'
  failureType: 'testCodeFailure'
  error: |-
    Property failed after 343 tests
    { seed: -478042643, path: "342:0:0:0:3:0:1:1:0:1:1:1", endOnFailure: true }
    Counterexample: [{"board":[32,2,32,32,0,16,2,4,0,2,0,2,0,4,0,0],"score":0,"undos":0,"rng":0},"up"]
    Shrunk 11 time(s)
    
    Hint: Enable verbose mode in order to have the list of all failing values encountered during the run
  code: 'ERR_TEST_FAILURE'
  stack: |-
    buildError (file:///home/claude/merge-game/node_modules/fast-check/lib/fast-check.js:2497:16)
    throwIfFailed (file:///home/claude/merge-game/node_modules/fast-check/lib/fast-check.js:2504:8)
    reportRunDetails (file:///home/claude/merge-game/node_modules/fast-check/lib/fast-check.js:2520:14)
    Module.assert (file:///home/claude/merge-game/node_modules/fast-check/lib/fast-check.js:2711:53)
    check (file:///tmp/phase2/B/tests/properties.test.js:44:28)
    TestContext.<anonymous> (file:///tmp/phase2/B/tests/properties.test.js:101:3)
    Test.runInAsyncScope (node:async_hooks:214:14)
    Test.run (node:internal/test_runner/test:1047:25)
    Test.processPendingSubtests (node:internal/test_runner/test:744:18)
    Test.postRun (node:internal/test_runner/test:1173:19)
  ...
# Subtest: P3 a valid move adds exactly one tile and the board never holds more than 16
not ok 3 - P3 a valid move adds exactly one tile and the board never holds more than 16
  ---
  duration_ms: 67.193623
  type: 'test'
  location: '/tmp/phase2/B/tests/properties.test.js:127:1'
  failureType: 'testCodeFailure'
  error: |-
    Property failed after 1 tests
    { seed: 2136762217, path: "0:0:1:0:0:2:5:7:7", endOnFailure: true }
    Counterexample: [0,["up","up","up"]]
    Shrunk 8 time(s)
    
    Hint: Enable verbose mode in order to have the list of all failing values encountered during the run
  code: 'ERR_TEST_FAILURE'
  stack: |-
    buildError (file:///home/claude/merge-game/node_modules/fast-check/lib/fast-check.js:2497:16)
    throwIfFailed (file:///home/claude/merge-game/node_modules/fast-check/lib/fast-check.js:2504:8)
    reportRunDetails (file:///home/claude/merge-game/node_modules/fast-check/lib/fast-check.js:2520:14)
    Module.assert (file:///home/claude/merge-game/node_modules/fast-check/lib/fast-check.js:2711:53)
    check (file:///tmp/phase2/B/tests/properties.test.js:44:28)
    TestContext.<anonymous> (file:///tmp/phase2/B/tests/properties.test.js:142:3)
    Test.runInAsyncScope (node:async_hooks:214:14)
    Test.run (node:internal/test_runner/test:1047:25)
    Test.processPendingSubtests (node:internal/test_runner/test:744:18)
    Test.postRun (node:internal/test_runner/test:1173:19)
  ...
# Subtest: P4 restore(snapshot()) gives back board, score, undo charges and random state
ok 4 - P4 restore(snapshot()) gives back board, score, undo charges and random state
  ---
  duration_ms: 421.958167
  type: 'test'
  ...
# Subtest: P5 undo is exact: the same move again gives the same board, score and spawn
ok 5 - P5 undo is exact: the same move again gives the same board, score and spawn
  ---
  duration_ms: 411.726272
  type: 'test'
  ...
# Subtest: P6 the same seed and the same moves give the same board and score, every time
ok 6 - P6 the same seed and the same moves give the same board and score, every time
  ---
  duration_ms: 659.779389
  type: 'test'
  ...
# Subtest: P7 isOver() is true exactly when none of the four directions changes the board
ok 7 - P7 isOver() is true exactly when none of the four directions changes the board
  ---
  duration_ms: 3739.305693
  type: 'test'
  ...
# Subtest: P8 the score never decreases and a move gains exactly the scoring rule of its merges
ok 8 - P8 the score never decreases and a move gains exactly the scoring rule of its merges
  ---
  duration_ms: 390.906088
  type: 'test'
  ...
# Subtest: P9 an unknown direction always throws and leaves the game untouched
ok 9 - P9 an unknown direction always throws and leaves the game untouched
  ---
  duration_ms: 31.202117
  type: 'test'
  ...
1..9
# tests 9
# suites 0
# pass 7
# fail 2
# cancelled 0
# skipped 0
# todo 0
# duration_ms 6244.486476
