Created
October 27, 2019 23:18
-
-
Save msaroufim/3a59550023c09161132be1817abd4337 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Deterministic policy that is solving the problem | |
mutable struct BasicCarPolicy <: Reinforce.AbstractPolicy end | |
Reinforce.action(policy::BasicCarPolicy, r, s, A) = s.velocity < 0 ? 1 : 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment