Description Usage Arguments Value Author(s)
View source: R/find_knight_attacks.R
Given a board state, a side and the knight position, return every attacked squares by that knight.
1 | find_knight_attacks(board, whites, square)
|
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"). |
A bitboard with all attacked squared by the Knight.
Eduardo Kapp
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.