Pops n moves from the end of the history, clearing those cells and
restoring the player-to-move. Returns a new board.
Examples
b <- tsr_new_board()
b2 <- tsr_move(b, cell = 1L)
identical(tsr_undo(b2), b)
#> [1] TRUE
Pops n moves from the end of the history, clearing those cells and
restoring the player-to-move. Returns a new board.
b <- tsr_new_board()
b2 <- tsr_move(b, cell = 1L)
identical(tsr_undo(b2), b)
#> [1] TRUE