Documentation
¶
Index ¶
- type Board
- func (b Board[T]) AllCoords() []Coord
- func (b Board[T]) Get(r, c int) T
- func (b Board[T]) GetCoord(co Coord) T
- func (b Board[T]) Height() int
- func (b Board[T]) InBounds(co Coord) bool
- func (b Board[T]) Neighborhood9(co Coord) []Coord
- func (b Board[T]) Neighbors4(co Coord) []Coord
- func (b Board[T]) Neighbors8(co Coord) []Coord
- func (b *Board[T]) Set(r, c int, val T)
- func (b *Board[T]) SetCoord(co Coord, val T)
- func (b Board[T]) String() string
- func (b Board[T]) Width() int
- type Coord
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Board ¶
func (Board[T]) Neighborhood9 ¶
func (Board[T]) Neighbors4 ¶
func (Board[T]) Neighbors8 ¶
Click to show internal directories.
Click to hide internal directories.