JuliaReinforcementLearning / GridWorlds.jl

Help! I'm lost in the flatland!
MIT License
47 stars 9 forks source link

add rewards and get_reward capabilities to CollectGems #45

Closed Sid-Bhatia-0 closed 4 years ago

Sid-Bhatia-0 commented 4 years ago

Added rewards into the CollectGems env struct. The field r will maintain the step reward received from the immediately previous action.

Overloaded the default method for TURN_LEFT and TURN_RIGHT actions in order to update the env.r field on every action taken.

Not re-implementing a time penalty for each step taken. Can incorporate this feature using RewardOverriddenEnv