game

package
v0.0.0-...-db2e5f8 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2019 License: BSD-2-Clause Imports: 0 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action interface {
	String() string
}

Action represents an action in a game

type Attribute

type Attribute interface {
	GetAttributeName() string
	GetAttributeValue(*[]interface{}) int
}

Attribute represents one charasteristic of a game state

type State

type State interface {
	String() string
	GetPossibleActions() []Action
	GetSuccessorState(Action) State
	IsGoalState(bool) (bool, interface{})
	EvaluateGoalState(bool) float64
	Same(State) bool
	GenSample(float64, chan []uint32, chan []int, chan [2][]int) string // Returns a string representing state attributes for supervised machine learning
}

State represents a state in a game

Directories

Path Synopsis
Package hex - in this file all possible attributes that can be used for evaluating a hex board are listed.
Package hex - in this file all possible attributes that can be used for evaluating a hex board are listed.

Jump to

Keyboard shortcuts

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