Documentation ¶
Index ¶
- Constants
- type Beacon
- type Grid
- func (g *Grid) AddBeacon(beacon *Beacon)
- func (g *Grid) AddSensor(sensor *Sensor)
- func (g *Grid) Bounds() (int, int, int, int)
- func (g *Grid) Contains(x int, y int, p *Point) bool
- func (g *Grid) CountCannotBePresent(VERBOSE bool, row int) int
- func (g *Grid) CountGaps(VERBOSE bool, row int) (int, int)
- func (g *Grid) CountMissing(VERBOSE bool, row int) []int
- func (g *Grid) Debug() string
- func (g *Grid) Get(x int, y int) *Point
- func (g *Grid) GetSegments(VERBOSE bool, row int) []*Segment
- func (g *Grid) Height() int
- func (g *Grid) Put(x int, y int, p *Point)
- func (g *Grid) Width() int
- type Point
- type Puzzle
- type Segment
- func (s *Segment) Integrate(VERBOSE bool, other *Segment) bool
- func (s *Segment) IsInsideOf(other *Segment) bool
- func (s *Segment) IsOverlappedBy(other *Segment) bool
- func (s *Segment) OverlapsToLeftOf(other *Segment) bool
- func (s *Segment) OverlapsToRightOf(other *Segment) bool
- func (s *Segment) OverlapsWith(other *Segment) bool
- func (s *Segment) String() string
- type Sensor
Constants ¶
View Source
const REAL_DATA = `` /* 2500-byte string literal not displayed */
View Source
const TEST_DATA = `` /* 737-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Grid ¶
type Puzzle ¶
type Puzzle struct {
// contains filtered or unexported fields
}
func NewPuzzleWithData ¶
type Segment ¶
func NewSegment ¶
func RemoveSegmentAtIndex ¶
func (*Segment) IsInsideOf ¶
func (*Segment) IsOverlappedBy ¶
func (*Segment) OverlapsToLeftOf ¶
func (*Segment) OverlapsToRightOf ¶
func (*Segment) OverlapsWith ¶
Click to show internal directories.
Click to hide internal directories.