Documentation ¶
Overview ¶
Package strategy defines different strategies for drawing images.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ideal ¶
type Ideal struct {
Rating perception.Rating
}
type RandomWalk ¶
type RandomWalk struct{}
func (*RandomWalk) Strategize ¶
RandomWalk chooses the next action completely randomly.
type Strategizer ¶
type Strategizer interface { // Strategize chooses the next action. // // The Rating is returned to help debug its behavior. It should indicate // the desirability (rating and distance to event) of the next action and // why it was chosen. Strategize(*gui.AppState) (gui.Action, Rating) }
Strategizer chooses the next action.
Click to show internal directories.
Click to hide internal directories.