find_queen_attacks: Find set of queen attacks

Description Usage Arguments Value Author(s)

View source: R/find_queen_attacks.R

Description

Given a board state, a side and the queen position, return every attacked squares by that queen

Usage

1
find_queen_attacks(board, whites, square)

Arguments

board

A 12 by 64 binary matrix representing the game current status.

whites

If TRUE, the piece is a white piece, else blacks.

square

A character representing a square ("a1" to "h8").

Value

A bitboard with all attacked squared by the Queen.

Author(s)

Eduardo Kapp


eduardokapp/chessR documentation built on Dec. 20, 2021, 3:20 a.m.