def render_tile(tile):
    """
    For a given tile, render its character
    :param tile:
    :returns str value of tile
    """

    # each tile list has the meaning: [Visible (bool), Mine (bool), Adjacent Mines (int)]
    # visible, mine, adjacent_mines = tile

    if tile[0]:
        # if the tile is visible
        if tile[1]:
            # if the tile is a mine
            return "X"
        elif tile[2]:
            # if the tile has neighboring mines
            return str(tile[2])
        else:
            return " "
    else:
        return "+"