|
|
|
|
|
|
using System.Collections.Generic; |
|
|
|
using UnityEngine; |
|
|
|
|
|
|
|
public class BasicDecision : MonoBehaviour, Decision { |
|
|
|
public class BasicDecision : MonoBehaviour, Decision |
|
|
|
{ |
|
|
|
|
|
|
|
public float[] Decide(List<float> state, List<Camera> observation, float reward, bool done, float[] memory) |
|
|
|
{ |
|
|
|
return new float[1]{ 1f }; |
|
|
|
public float[] Decide (List<float> state, List<Camera> observation, float reward, bool done, float[] memory) |
|
|
|
{ |
|
|
|
return default(float[]); |
|
|
|
} |
|
|
|
} |
|
|
|
public float[] MakeMemory(List<float> state, List<Camera> observation, float reward, bool done, float[] memory) |
|
|
|
{ |
|
|
|
return new float[0]; |
|
|
|
public float[] MakeMemory (List<float> state, List<Camera> observation, float reward, bool done, float[] memory) |
|
|
|
{ |
|
|
|
return default(float[]); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |