View source: R/all_possibilities.R
all_possibilities | R Documentation |
finds all legal moves for the player moving, and all the squares under attack from the opponent pieces.
all_possibilities(game)
game |
chess game object (i.e., a list with elements board, turn, history, and fen_history as created by newgame function) |
all chess possibilities
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.