public void BackPropagate(Reward reward) { _reward.AddReward(reward); _numSimulations++; _parent?.BackPropagate(reward); }
public void AddReward(Reward reward) { _rewards[1] += reward.GetRewardForPlayer(1); _rewards[2] += reward.GetRewardForPlayer(2); }