Last active
September 27, 2015 14:17
-
-
Save ConnorDoyle/1283311 to your computer and use it in GitHub Desktop.
EnMAS Client Example
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
import org.enmas.pomdp.{Agent, Action, State} | |
import scala.util.Random | |
class RandomAgent extends Agent { | |
val random = new scala.util.Random | |
def name = "Random Agent" | |
def policy(observation: State, reward: Float) = | |
actions.toSeq(random nextInt actions.size) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment