def _options_choose_characters(player):
    """Return the options for choosing a character.

    The first options must be the characters name (5 are allowed
    by player).  The other nodes must be reached through letters:
    C to create, D to delete.

    """
    options = list()
    characters = player.db._playable_characters
    if len(characters) < 5:
        options.append(        {
                "key": "c",
                "desc": "Create a new character.",
                "goto": "create_character",
        })

    if len(characters) > 0:
        options.append(        {
                "key": "d",
                "desc": "Delete an existing character.",
                "goto": "delete_character",
        })

    options.append(        {
            "key": "_default",
            "desc": "Login to an existing character.",
            "goto": "choose_characters",
    })
    return tuple(options)