Documentation ¶
Index ¶
- type GameBoard
- func (b *GameBoard) AppendIfMissing(slice []*Point, points ...*Point) []*Point
- func (b *GameBoard) CountNear(pt *Point, wanted ...rune) int
- func (b *GameBoard) Find(wanted ...rune) []*Point
- func (b *GameBoard) FindFirst(wanted ...rune) *Point
- func (b *GameBoard) FindNear(pt *Point) []rune
- func (b *GameBoard) GetAt(pt *Point) rune
- func (b *GameBoard) IsAt(pt *Point, wanted ...rune) bool
- func (b *GameBoard) IsNear(pt *Point, wanted ...rune) bool
- func (b *GameBoard) Size() int
- func (b *GameBoard) String() string
- type Point
- type Solver
- type SortedPoints
- type WebSocketRunner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GameBoard ¶
type GameBoard struct {
// contains filtered or unexported fields
}
func NewGameBoard ¶
func (*GameBoard) AppendIfMissing ¶
type SortedPoints ¶
type SortedPoints []*Point
func (SortedPoints) Len ¶
func (p SortedPoints) Len() int
func (SortedPoints) Less ¶
func (p SortedPoints) Less(i, j int) bool
func (SortedPoints) Swap ¶
func (p SortedPoints) Swap(i, j int)
type WebSocketRunner ¶
type WebSocketRunner struct {
// contains filtered or unexported fields
}
func NewWebSocketRunner ¶
func NewWebSocketRunner(url string) *WebSocketRunner
func (*WebSocketRunner) Run ¶
func (r *WebSocketRunner) Run(solver Solver)
Click to show internal directories.
Click to hide internal directories.