|
|
|
|
26
|
- `Width`: Map width
|
26
|
- `Width`: Map width
|
27
|
- `ActionPropability`: Probability that an action occurs in the enviromnent, once per `EnvConfig.SleepTime` (>=0, <=100)
|
27
|
- `ActionPropability`: Probability that an action occurs in the enviromnent, once per `EnvConfig.SleepTime` (>=0, <=100)
|
28
|
- `AddDustProbability`: Probability that a dust is added on the map, only when an action is to be taken (>=0, <=100)
|
28
|
- `AddDustProbability`: Probability that a dust is added on the map, only when an action is to be taken (>=0, <=100)
|
29
|
- - `AddJewelProbability`: Probability that a jewel is added on the map, only when an action is to be taken,
|
|
|
30
|
- and `AddDustProbability` does not occur (>=0, <=100)
|
|
|
31
|
- `RemoveJewelProbability`: Probability that a jewel is removed from the map, only when an action is to be taken,
|
29
|
- `RemoveJewelProbability`: Probability that a jewel is removed from the map, only when an action is to be taken,
|
32
|
- and neither `EnvConfig.AddDustProbability` nor `EnvConfig.AddJewelProbability` occur (>=0, <=100)
|
|
|
|
|
30
|
+ and `EnvConfig.AddDustProbability` does not occur (>=0, <=100)
|
|
|
31
|
+ - `AddJewelProbability`: Probability that a jewel is added on the map, only when an action is to be taken,
|
|
|
32
|
+ and neither `EnvConfig.AddDustProbability` nor `EnvConfig.RemoveJewelProbability` occur (>=0, <=100)
|
33
|
- `SleepTime`: Time between each iteration in ms (>=0)
|
33
|
- `SleepTime`: Time between each iteration in ms (>=0)
|
34
|
|
34
|
|
35
|
- `AgConfig` (Agent configuration)
|
35
|
- `AgConfig` (Agent configuration)
|
|
|
|
|
57
|
- Sleep: Sleep for `EnvConfig.SleepTime`ms
|
57
|
- Sleep: Sleep for `EnvConfig.SleepTime`ms
|
58
|
- May do something: Randomly choose to do something or not using `EnvConfig.ActionPropability`
|
58
|
- May do something: Randomly choose to do something or not using `EnvConfig.ActionPropability`
|
59
|
- May add dust on a random location: Randomly choose to do it or not using `EnvConfig.AddDustProbability`
|
59
|
- May add dust on a random location: Randomly choose to do it or not using `EnvConfig.AddDustProbability`
|
60
|
- - May add a jewel on a random location: Randomly choose to do it or not using `EnvConfig.AddJewelProbability`.
|
|
|
61
|
- Can only happen if no previous action has been done.
|
|
|
62
|
- May remove a jewel from the first room that contains a jewel: Randomly choose to do it or not using `EnvConfig.RemoveJewelProbability`.
|
60
|
- May remove a jewel from the first room that contains a jewel: Randomly choose to do it or not using `EnvConfig.RemoveJewelProbability`.
|
63
|
Can only happen if no previous action has been done.
|
61
|
Can only happen if no previous action has been done.
|
|
|
62
|
+ - May add a jewel on a random location: Randomly choose to do it or not using `EnvConfig.AddJewelProbability`.
|
|
|
63
|
+ Can only happen if no previous action has been done.
|
64
|
|
64
|
|
65
|
Code
|
65
|
Code
|
66
|
----
|
66
|
----
|