Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Directions = [][]int{
{-1, -1}, {-1, 0}, {-1, 1},
{0, -1}, {0, 1},
{1, -1}, {1, 0}, {1, 1},
}
View Source
var Directions2 = [][]int{
{-1, -1}, {-1, 0}, {-1, 1},
{0, -1}, {0, 1},
{1, -1}, {1, 0}, {1, 1},
}
Duplicate for readability
Functions ¶
func IsPartNumber ¶
func ParseSchematic ¶
func Traverse2 ¶
func Traverse2(schematic [][]rune) map[Coordinate][]int
Types ¶
type Coordinate ¶
type Coordinate struct {
// contains filtered or unexported fields
}
func IsPartOfGearRatio ¶
func IsPartOfGearRatio(schematic [][]rune, row, col int, gears map[Coordinate][]int) Coordinate
Click to show internal directories.
Click to hide internal directories.