Documentation ¶
Index ¶
- type Agent
- type AgentAvgRecord
- type AgentStat
- type AgentStatRecord
- type AnticlockwiseAgent
- type ClockwiseAgent
- type GenericAgent
- func (a *GenericAgent) GameFinished(step int, score int, noMove bool, lst []int, d common.Direction)
- func (a *GenericAgent) GetGameId() int64
- func (a *GenericAgent) GetGameSeed() int64
- func (a *GenericAgent) GetId() string
- func (a *GenericAgent) GetName() string
- func (a *GenericAgent) IsManual() bool
- func (a *GenericAgent) LogStep(step int, score int, noMove bool, lst []int, d common.Direction) error
- type HumanAgent
- type PoolAgent
- func (p *PoolAgent) GameFinished(step int, score int, noMove bool, lst []int, d common.Direction)
- func (p *PoolAgent) GetGameId() int64
- func (p *PoolAgent) GetGameSeed() int64
- func (p *PoolAgent) GetId() string
- func (p *PoolAgent) GetName() string
- func (p *PoolAgent) GetStatStr() string
- func (p *PoolAgent) IsManual() bool
- func (p *PoolAgent) LogStep(step int, score int, noMove bool, lst []int, d common.Direction) error
- func (p *PoolAgent) MakeMove(step int, score int, noMove bool, lst []int) common.Direction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent interface { GetId() string GetName() string IsManual() bool GetGameId() int64 GetGameSeed() int64 MakeMove(step int, score int, noMove bool, valueList []int) common.Direction LogStep(step int, score int, noMove bool, valueList []int, d common.Direction) error GameFinished(step int, score int, noMove bool, valueList []int, d common.Direction) }
func NewAnticlockwiseAgent ¶
func NewClockwiseAgent ¶
func NewHumanAgent ¶
func NewPoolAgent ¶
type AgentAvgRecord ¶
type AgentStat ¶
type AgentStat struct { Count int Min AgentStatRecord AvgScore float64 Max AgentStatRecord }
type AgentStatRecord ¶
type AnticlockwiseAgent ¶
type AnticlockwiseAgent struct { GenericAgent // contains filtered or unexported fields }
type ClockwiseAgent ¶
type ClockwiseAgent struct { GenericAgent // contains filtered or unexported fields }
type GenericAgent ¶
type GenericAgent struct {
// contains filtered or unexported fields
}
func NewGenericAgent ¶
func NewGenericAgent(id string, name string, isManual bool, startGameId int64) GenericAgent
func (*GenericAgent) GameFinished ¶
func (*GenericAgent) GetGameId ¶
func (a *GenericAgent) GetGameId() int64
func (*GenericAgent) GetGameSeed ¶
func (a *GenericAgent) GetGameSeed() int64
func (*GenericAgent) GetId ¶
func (a *GenericAgent) GetId() string
func (*GenericAgent) GetName ¶
func (a *GenericAgent) GetName() string
func (*GenericAgent) IsManual ¶
func (a *GenericAgent) IsManual() bool
type HumanAgent ¶
type HumanAgent struct { GenericAgent // contains filtered or unexported fields }
type PoolAgent ¶
type PoolAgent struct {
// contains filtered or unexported fields
}
PoolAgent Represent a collection of agents which is executed one by one
func (*PoolAgent) GameFinished ¶
func (*PoolAgent) GetGameSeed ¶
func (*PoolAgent) GetStatStr ¶
Click to show internal directories.
Click to hide internal directories.