print_board: Print board to user

Description Usage Arguments Value Author(s)

View source: R/print_board.R

Description

Given a board matrix, convert it to a user-friendly 8x8 matrix with every slot represented with piece names.

Usage

1
print_board(board, single_bitboard = FALSE)

Arguments

board

A 12 by 64 numeric matrix.

single_bitboard

If TRUE, treats 'board' as if it is only a single board layer, which is a bitboard representing one of the 12 piece possible variations.

Value

A friendly visualization of the board.

Author(s)

Eduardo Kapp


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