powered by
lists legal moves
legalmoves(game)
character vector
chess game object (i.e., a list with elements board, turn, history, and fen_history as created by newgame function)
newgame() |> legalmoves()
Run the code above in your browser using DataLab