team4

package
v0.0.0-...-95be186 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2021 License: BSD-3-Clause Imports: 11 Imported by: 0

README

Team 4: Cherry Pitt 🍒

Core Responsibilities
  • Design: IIGO and Rules
  • Infrastructure: Messaging between the clients and the server
Team Members
Rep Name Shortcode Github ID
Design Rudolfs Spuris rds1417 Spruudis
Infrastructure Jung Hyun Kim jhk2217 777jameskim
Andrzej Kowalewski ak9717 akowal3
Chi Keen Tan ckt17 chikeen
Fabio Deo fd5117 Fabio752
Toby Hillier fth2817 tobhil98
Mike Xu zx516 MikeIsMike

Documentation

Overview

Package team4 contains code for team 4's client implementation

Index

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 IslandRequestPair struct {
	Key   shared.ClientID
	Value shared.Resources
}

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL