are_square_types_present

Summary

are_square_types_present(frb: BoardFile, t: list[SquareType]) bool

Accepts a list of SquareTypes, 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 (list[SquareType]) – A list of SquareTypes 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 are_square_types_present