Documentation
¶
Index ¶
Constants ¶
View Source
const ( Cycle20 int = 20 Cycle60 int = 60 Cycle100 int = 100 Cycle140 int = 140 Cycle180 int = 180 Cycle220 int = 220 )
Cycle constants.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct {
Instruction Instruction
Value int
}
Command is a single instruction with a value.
type Day10 ¶
type Day10 struct {
Cycle int
X map[int]int
Commands []Command
Cycle20 int
Cycle60 int
Cycle100 int
Cycle140 int
Cycle180 int
Cycle220 int
}
Day10 is the exercise environment.
type Exercise ¶
type Exercise struct {
common.BaseExercise
}
Exercise for Advent of Code 2022 day 10.
type Instruction ¶
type Instruction string
Instruction is string type for instructions.
const ( Add Instruction = "addx" Noop Instruction = "noop" )
Instruction constants.
Click to show internal directories.
Click to hide internal directories.