Documentation
¶
Index ¶
Constants ¶
View Source
const BroadcasterID = "broadcaster"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conjuncter ¶
type Conjunction ¶
type Conjunction struct { ID string // contains filtered or unexported fields }
func (*Conjunction) AllHigh ¶
func (c *Conjunction) AllHigh() bool
func (*Conjunction) GetDests ¶
func (c *Conjunction) GetDests() []string
func (*Conjunction) GetID ¶
func (c *Conjunction) GetID() string
func (*Conjunction) GetInputs ¶
func (c *Conjunction) GetInputs() []string
func (*Conjunction) GetMemory ¶
func (c *Conjunction) GetMemory() Memory
func (*Conjunction) Receive ¶
func (c *Conjunction) Receive(msg Message)
func (*Conjunction) SetMemory ¶
func (c *Conjunction) SetMemory(id string, p Pulse)
type Exercise ¶
type Exercise struct {
common.BaseExercise
}
Exercise for Advent of Code 2023 day 20.
type FlipFlopper ¶
type MessageQueue ¶
type MessageQueue []Message
func (*MessageQueue) Send ¶
func (mq *MessageQueue) Send(src, dst string, p Pulse)
type ModConfig ¶
func (ModConfig) DebugPrint ¶
func (cfg ModConfig) DebugPrint()
func (ModConfig) GetFeed ¶
func (cfg ModConfig) GetFeed(id string) (*Conjunction, error)
find the module that sends a signal to the target
func (ModConfig) InitModules ¶
func (cfg ModConfig) InitModules()
InitModules populates the memory of all conjunction modules and sets all flipflops to off.
func (ModConfig) ProcessQueue ¶
func (ModConfig) ProcessUntilHigh ¶
func (cfg ModConfig) ProcessUntilHigh(cj Conjuncter) int
Click to show internal directories.
Click to hide internal directories.