Documentation ¶
Index ¶
- Constants
- type Grid
- func (g *Grid) CountVisibleBottom(treeRow int, treeCol int) int
- func (g *Grid) CountVisibleLeft(treeRow int, treeCol int) int
- func (g *Grid) CountVisibleRight(treeRow int, treeCol int) int
- func (g *Grid) CountVisibleTop(treeRow int, treeCol int) int
- func (g *Grid) Get(row int, col int) int
- func (g *Grid) IsVisible(treeRow int, treeCol int) (bool, bool, bool, bool)
- func (g *Grid) IsVisibleFromBottom(treeRow int, treeCol int) bool
- func (g *Grid) IsVisibleFromLeft(treeRow int, treeCol int) bool
- func (g *Grid) IsVisibleFromRight(treeRow int, treeCol int) bool
- func (g *Grid) IsVisibleFromTop(treeRow int, treeCol int) bool
- func (g *Grid) Put(row int, col int, height int)
- type Puzzle
Constants ¶
View Source
const REAL_DATA = `` /* 9899-byte string literal not displayed */
View Source
const TEST_DATA = `30373
25512
65332
33549
35390`
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Grid ¶
type Grid struct {
// contains filtered or unexported fields
}
func (*Grid) IsVisibleFromBottom ¶
type Puzzle ¶
type Puzzle struct {
// contains filtered or unexported fields
}
func NewPuzzleWithData ¶
Click to show internal directories.
Click to hide internal directories.