def calculate_reward(state, v):
    """Calculate reward for player v based on current state."""
    status = state.get_status()
    r = 0.0
    if status == 0:
        r = -1.0
    elif status == v:
        r = 2.0
    else:
        r = -2.0
    return (r, status)