|
@@ -26,10 +26,10 @@ Some behaviors can be configured in Program.cs file:
|
26
|
26
|
- `Width`: Map width
|
27
|
27
|
- `ActionPropability`: Probability that an action occurs in the enviromnent, once per `EnvConfig.SleepTime` (>=0, <=100)
|
28
|
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
|
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
|
33
|
- `SleepTime`: Time between each iteration in ms (>=0)
|
34
|
34
|
|
35
|
35
|
- `AgConfig` (Agent configuration)
|
|
@@ -57,10 +57,10 @@ FakeEnv implementation will loop forever (until killed) peforming the following
|
57
|
57
|
- Sleep: Sleep for `EnvConfig.SleepTime`ms
|
58
|
58
|
- May do something: Randomly choose to do something or not using `EnvConfig.ActionPropability`
|
59
|
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
|
60
|
- May remove a jewel from the first room that contains a jewel: Randomly choose to do it or not using `EnvConfig.RemoveJewelProbability`.
|
63
|
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
|
65
|
Code
|
66
|
66
|
----
|