def create_game_path(content, experiment, game, opt_init):
    """
    This function will create a new directory based on the given parameters.
    :param content: The type of content this directory will hold.
    :param experiment: The name of the experiment that is being performed.
    :param game: The current game that is being played.
    :param opt_init: A boolean that decides on optimistic initialization of the Q-tables.
    :return: The path that was created.
    """
    path = f'{content}/{experiment}/{game}'

    if opt_init:
        path += '/opt_init'
    else:
        path += '/zero_init'

    return path