def next_anti_clockwise_position(row: int, column: int) -> tuple[int, int]:
    """
    Given any position on the board, go to the next one following the
    anti-clockwise pattern.
    """
    if row % 2 == 0:  # row is even
        column -= 1
        if column == -1:
            # left edge
            column += 1
            row += 1
    else:
        column += 1
        if column == 12:
            # right edge
            column -= 1
            row -= 1

    return row, column