Learn R Programming

chess2plyrs (version 0.3.0)

legalmoves: legalmoves

Description

lists legal moves

Usage

legalmoves(game)

Value

character vector

Arguments

game

chess game object (i.e., a list with elements board, turn, history, and fen_history as created by newgame function)

Examples

Run this code
newgame() |>
legalmoves()

Run the code above in your browser using DataLab