Documentation ¶
Index ¶
Constants ¶
View Source
const ( RIGHT = "R" UP = "U" LEFT = "L" DOWN = "D" )
Variables ¶
View Source
var ( Dirs = map[string]*Pos{ "R": NewPos(0, 1), "U": NewPos(-1, 0), "L": NewPos(0, -1), "D": NewPos(1, 0), } Diags = []*Pos{ {Row: 1, Col: 1}, {Row: -1, Col: 1}, {Row: -1, Col: -1}, {Row: 1, Col: -1}, } Adjacent = []*Pos{ {Row: -1, Col: -1}, {Row: -1, Col: 0}, {Row: -1, Col: 1}, {Row: 0, Col: -1}, {Row: 0, Col: 1}, {Row: 1, Col: -1}, {Row: 1, Col: 0}, {Row: 1, Col: 1}, } )
Functions ¶
This section is empty.
Types ¶
type Pos ¶
func FromString ¶
Click to show internal directories.
Click to hide internal directories.