Documentation ¶
Overview ¶
Package team4 contains code for team 4's client implementation
Index ¶
- func DefaultClient(id shared.ClientID) baseclient.Client
- func DishonestClient(id shared.ClientID) baseclient.Client
- func ModerateClient(id shared.ClientID) baseclient.Client
- func NewClient(clientID shared.ClientID, clientConfig ClientConfig) baseclient.Client
- type ClientConfig
- type IslandRequestPair
- type IslandRequestPairList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultClient ¶
func DefaultClient(id shared.ClientID) baseclient.Client
DefaultClient creates the client that will be used for most simulations. All other personalities are considered alternatives. To give a different personality for your agent simply create another (exported) function with the same signature as "DefaultClient" that creates a different agent, and inform someone on the simulation team that you would like it to be included in testing
func DishonestClient ¶
func DishonestClient(id shared.ClientID) baseclient.Client
DishonestClient creates a dishonest client
func ModerateClient ¶
func ModerateClient(id shared.ClientID) baseclient.Client
ModerateClient creates a moderate client
func NewClient ¶
func NewClient(clientID shared.ClientID, clientConfig ClientConfig) baseclient.Client
NewClient is a function that creates a new empty client
Types ¶
type ClientConfig ¶
type ClientConfig int
ClientConfig is the data type for the different client configs available
type IslandRequestPair ¶
type IslandRequestPairList ¶
type IslandRequestPairList []IslandRequestPair
IslandRequestPairList implements sort.Interface for []IslandRequestPair
func (IslandRequestPairList) Len ¶
func (p IslandRequestPairList) Len() int
func (IslandRequestPairList) Less ¶
func (p IslandRequestPairList) Less(i, j int) bool
func (IslandRequestPairList) Swap ¶
func (p IslandRequestPairList) Swap(i, j int)