// Based on the action taken from the last state and the current state that resulted // a reward will be given // Use position changes (reward passing through quadrant gates) // /// <summary> /// Conclusion: /// Not effective because a magnet could go through gates easily with the wrong charge do to momentum /// </summary> /// <returns>The reward gates.</returns> private int calculateReward_Gates() { if (lastState.getQuadrant() < currentState.getQuadrant() || (lastState.getQuadrant() == 3 && currentState.getQuadrant() == 0)) { // Debug.Log ("reward: 25"); return(90); } return(0); }