def get_click_checkboxes_hard(metadata):
    """(click-checkboxes task) Reward without partial credits.
    Give 1 if the raw reward is 1. Otherwise, give -1.
    """
    if not metadata['done']:
        return 0.
    return 1. if metadata['raw_reward'] == 1. else -1.