Documentation ¶
Index ¶
- Constants
- type Puzzle
- func (puzzle *Puzzle) AddStack(stack *Stack)
- func (puzzle *Puzzle) Line() string
- func (puzzle *Puzzle) Load(input string)
- func (puzzle *Puzzle) Part1()
- func (puzzle *Puzzle) Part2()
- func (puzzle *Puzzle) Run()
- func (puzzle *Puzzle) RunInstruction(instruction string)
- func (puzzle *Puzzle) RunInstruction9001(instruction string)
- func (puzzle *Puzzle) RunInstructions()
- func (puzzle *Puzzle) RunInstructions9001()
- type Stack
Constants ¶
View Source
const REAL_INSTRUCTIONS = `` /* 9587-byte string literal not displayed */
View Source
const REAL_STACKS = `` /* 325-byte string literal not displayed */
View Source
const TEST_INSTRUCTIONS = `move 1 from 2 to 1
move 3 from 1 to 3
move 2 from 2 to 1
move 1 from 1 to 2`
View Source
const TEST_STACKS = `
[D]
[N] [C]
[Z] [M] [P]
1 2 3
`
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Puzzle ¶
type Puzzle struct { Instructions []string Stacks []*Stack // contains filtered or unexported fields }
func NewPuzzleRealData ¶
func NewPuzzleRealData() *Puzzle
func NewPuzzleTestData ¶
func NewPuzzleTestData() *Puzzle
func (*Puzzle) RunInstruction ¶
func (*Puzzle) RunInstruction9001 ¶
func (*Puzzle) RunInstructions ¶
func (puzzle *Puzzle) RunInstructions()
func (*Puzzle) RunInstructions9001 ¶
func (puzzle *Puzzle) RunInstructions9001()
Click to show internal directories.
Click to hide internal directories.