def board_termsize(board_width, board_height):
    """
    Function board_termsize returns the height and width of a grid of
    characters needed to display a board with the given input dimensions.
    """
    cwidth = 3
    termwidth = (cwidth + 1) * board_width + 1
    termheight = board_height * 2 + 1
    return termwidth, termheight
