is_square_type_present

Summary

is_square_type_present(frb: BoardFile, t: SquareType) bool

Accepts a single SquareType, searches a given BoardFile object for Squares of that SquareType, and returns a boolean search result.

Parameters:
  • frb (BoardFile) – A BoardFile object that you would like to search.

  • t (SquareType) – A SquareType that you would like to search the board for.

Returns:

The result of the search. If True, the SquareType was present.

Return type:

bool

Importing

from cs_board_tools.queries.frb.squaretype import is_square_type_present