class AdventOfCode2021::Day23::Room
- AdventOfCode2021::Day23::Room
- Reference
- Object
Defined in:
day23/day23.crConstant Summary
-
DEFAULT_SIZE =
2
-
OTHER_SIZE =
4
Constructors
- .new(type : UInt8, amphipodas : Array(UInt8) = Array(UInt8).new(DEFAULT_SIZE))
- .new(size : Int32, type : UInt8, amphipodas : Array(UInt8) = Array(UInt8).new(@size))
Instance Method Summary
- #amphipodas : Array(UInt8)
- #can_pop? : Bool
- #can_push?(amp : UInt8) : Bool
- #clone
- #pop : Tuple(UInt8, Int32) | Nil
-
#push(amp : UInt8) : Int32 | Nil
Returns the number of steps
- #size : Int32
- #solved? : Bool
- #type : UInt8