all_possibilities: all_possibilities

View source: R/all_possibilities.R

all_possibilitiesR Documentation

all_possibilities

Description

finds all legal moves for the player moving, and all the squares under attack from the opponent pieces.

Usage

all_possibilities(game)

Arguments

game

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

Value

all chess possibilities


chess2plyrs documentation built on June 8, 2025, 10:03 a.m.