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: 429.35188
  type: 'test'
  ...
# Subtest: P2 an invalid move changes nothing: board, score, undo charges, random state
ok 2 - P2 an invalid move changes nothing: board, score, undo charges, random state
  ---
  duration_ms: 571.269933
  type: 'test'
  ...
# Subtest: P3 a valid move adds exactly one tile and the board never holds more than 16
ok 3 - P3 a valid move adds exactly one tile and the board never holds more than 16
  ---
  duration_ms: 688.392318
  type: 'test'
  ...
# 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: 379.805957
  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: 358.737846
  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: 797.692333
  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: 2404.398718
  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: 324.896602
  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: 23.614573
  type: 'test'
  ...
1..9
# tests 9
# suites 0
# pass 9
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 6084.118628
