Learn R Programming

chess (version 1.0.1)

board_move: Get information about the current board given a move

Description

Get information about the current board given a move

Usage

gives_check(game, move, notation = c("san", "uci", "xboard"))

is_en_passant(game, move, notation = c("san", "uci", "xboard"))

is_capture(game, move, notation = c("san", "uci", "xboard"))

is_zeroing(game, move, notation = c("san", "uci", "xboard"))

is_irreversible(game, move, notation = c("san", "uci", "xboard"))

is_castling(game, move, notation = c("san", "uci", "xboard"))

is_kingside_castling(game, move, notation = c("san", "uci", "xboard"))

is_queenside_castling(game, move, notation = c("san", "uci", "xboard"))

Arguments

game

A game node

move

Move to consider

notation

Notation used for move

Value

A boolean