public class UIPlayer extends AgentPlayer
policy, state| Constructor and Description |
|---|
UIPlayer(String name,
Agent policy)
Create a player with a given name and policy.
|
UIPlayer(String name,
Agent policy,
boolean interactive) |
| Modifier and Type | Method and Description |
|---|---|
Action |
getAction() |
void |
onGameOver() |
void |
sendMessage(GameEvent msg) |
void |
setID(int id,
int nPlayers) |
getName, toStringpublic UIPlayer(String name, Agent policy)
name - the name of this playerpolicy - the policy this player should usepublic Action getAction()
getAction in interface PlayergetAction in class AgentPlayerpublic void setID(int id,
int nPlayers)
setID in interface PlayersetID in class AgentPlayerpublic void sendMessage(GameEvent msg)
sendMessage in interface PlayersendMessage in class AgentPlayerpublic void onGameOver()
Copyright © 2017 FOSS Galaxy. All rights reserved.