Replay-based undo guarantees correctness and exercises history determinism.
Examples
g <- mxo_new_game()
g <- mxo_move(g, "present", 0L, 0L, 0L)
identical(mxo_undo(g)$history, list())
#> [1] TRUE
Replay-based undo guarantees correctness and exercises history determinism.
g <- mxo_new_game()
g <- mxo_move(g, "present", 0L, 0L, 0L)
identical(mxo_undo(g)$history, list())
#> [1] TRUE