class Aoc2022::Day11::Monkey

Defined in:

aoc2022/days/day11.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(index : Int64, items : Array(Int64), operation : Operation, divisible_test : Int64, throw_true : Int64, throw_false : Int64) #

[View source]

Instance Method Detail

def configure_worry_reducer(worry_reducer : Proc(Int64, Int64)) #

[View source]
def divisible_test : Int64 #

[View source]
def inspect_count : Int32 #

[View source]
def items : Array(Int64) #

[View source]
def play(monkeys : Array(self)) #

[View source]
def receive_item(item : Int64) #

[View source]