Documentation
¶
Index ¶
- Constants
- type Block
- type BlockType
- type Puzzle
- func (puzzle *Puzzle) AddSand(max_y int) (bool, *Block, int)
- func (p *Puzzle) Bounds() (int, int, int, int)
- func (p *Puzzle) Contains(x int, y int) bool
- func (p *Puzzle) Debug() string
- func (p *Puzzle) DebugFrame(min_x int, min_y int, max_x int, max_y int) string
- func (p *Puzzle) Get(x int, y int) *Block
- func (puzzle *Puzzle) Load(VERBOSE bool, input string)
- func (puzzle *Puzzle) Part1()
- func (puzzle *Puzzle) Part2()
- func (p *Puzzle) Put(x int, y int, value BlockType) *Block
- func (puzzle *Puzzle) Run()
- func (puzzle *Puzzle) SetFloor(floor int)
- func (p *Puzzle) Size() int
Constants ¶
View Source
const REAL_DATA = `` /* 19414-byte string literal not displayed */
View Source
const TEST_DATA = `498,4 -> 498,6 -> 496,6
503,4 -> 502,4 -> 502,9 -> 494,9`
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockType ¶
type BlockType string
const AIR BlockType = "."
const ORIGIN BlockType = "+"
const ROCK BlockType = "#"
const SAND BlockType = "o"
const SOURCE BlockType = "+"
Click to show internal directories.
Click to hide internal directories.