bits_to_square: Find out which square is represented in a bitboard

Description Usage Arguments Value Author(s)

View source: R/bits_to_square.R

Description

Given a bitboard representation, find which square a piece is occupying.

Usage

1
bits_to_square(bitboard, split = FALSE)

Arguments

bitboard

A bitboard representation, which is a 64 binary vector.

split

If true, also returns the square's rank and file.

Value

A list with the square associated with the bitboard.

Author(s)

Eduardo Kapp


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