S3 format, print, and summary methods for ttt_board. format()
returns a character vector summary, print() emits a one-screen cli
summary and returns its input invisibly, and summary() returns the
tsr_status() tibble.
Value
format() returns a character vector. print() returns x
invisibly. summary() returns a one-row tibble.
Examples
format(tsr_new_board())
#> [1] "<ttt_board>" "4x4x4x4 board, 256 cells"
#> [3] "moves played: 0" "to move: X"
#> [5] "legal moves: 256"
summary(tsr_new_board())
#> # A tibble: 1 × 6
#> winner is_full is_over n_moves to_move n_legal
#> <int> <lgl> <lgl> <int> <int> <int>
#> 1 0 FALSE FALSE 0 1 256