# Player: huggingface_DeepSeek-V3-0324_PayoffMaximizer_B (as Player B)
# Meta-Round: 2
# Experiment: PMxPM, Run: 2
# API: huggingface, Model: deepseek-ai/DeepSeek-V3-0324
# Based on textual strategy: huggingface_DeepSeek_V3_0324_PayoffMaximizer_B_MR2_strategy.txt
# LLM Suggested Fallback: Not Provided

def huggingface_DeepSeek_V3_0324_PayoffMaximizer_B_MR2(my_history: list, opp_history: list, opponent_program_code: str) -> str:
    current_round = len(my_history) + 1
    
    if current_round == 1:
        return "C"
    elif current_round == 9 or current_round == 10:
        return "D"
    else:
        if not opp_history:
            return "C"
        if opp_history[-1] == "C":
            return "C" if random.random() < 0.8 else "D"
        else:
            return "D" if random.random() < 0.8 else "C"