Skip to contents

Enumerate the legal moves of a game state

Usage

mxo_legal_moves(game)

Arguments

game

An mxo_game object.

Value

A type-stable tibble with columns kind (chr), L_src (int), t_src (int), idx (int), and player (int, equal to mxo_to_move()). Always has these columns, including when the game is terminal (0 rows).

Examples

g <- mxo_new_game()
nrow(mxo_legal_moves(g))
#> [1] 64