浏览代码

no energy penalty

/asymm-envs
Andrew Cohen 5 年前
当前提交
a8f2f613
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      Project/Assets/ML-Agents/Examples/Tennis/Scripts/HitWall.cs

4
Project/Assets/ML-Agents/Examples/Tennis/Scripts/HitWall.cs


void AgentAWins()
{
m_AgentA.SetReward(1f + m_AgentA.energyPenalty);
m_AgentA.SetReward(1f);// + m_AgentA.energyPenalty);
m_AgentB.SetReward(-1f);
m_AgentA.score += 1;
Reset();

void AgentBWins()
{
m_AgentA.SetReward(-1f);
m_AgentB.SetReward(1f + m_AgentB.energyPenalty);
m_AgentB.SetReward(1f);// + m_AgentB.energyPenalty);
m_AgentB.score += 1;
Reset();

正在加载...
取消
保存