Class TGameEnvRand

java.lang.Object
  extended by TGameEnv
      extended by TGameEnvRand

public class TGameEnvRand
extends TGameEnv


Field Summary
 
Fields inherited from class TGameEnv
currX, currY, minReward, minStep, numberOfSteps, reward, totalReward, tracing, xDim, yDim, zeroCrossing
 
Constructor Summary
TGameEnvRand(TGameEnv intEnv, int seed)
           
 
Method Summary
 void doreset()
          resets the number of steps and the reward.
 double dostep(int action)
          does one step.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TGameEnvRand

public TGameEnvRand(TGameEnv intEnv,
                    int seed)
Method Detail

dostep

public double dostep(int action)
does one step.

Overrides:
dostep in class TGameEnv
Parameters:
action - the action that the agent does
Returns:
reward

doreset

public void doreset()
Description copied from class: TGameEnv
resets the number of steps and the reward.

Overrides:
doreset in class TGameEnv