check_square_coordinates¶
Summary¶
- check_square_coordinates(frbs: list[BoardFile]) str¶
Checks to see if the board contains any squares with X or Y coordinates outside the recommended playing field. Boards that stretch too far out can make the game’s minimap cover too much of the screen. The recommended maximum coordinates for a square are +/- 544 Y, 672 X.
- Parameters:
frbs (list[BoardFile]) – A list of BoardFile objects representing one or more .frb files.
- Returns:
A string containing the error message if the check fails, or an empty string if it passes.
- Return type:
str
Importing¶
from cs_board_tools.validation.board import check_square_coordinates