Advent of Code: Day 6 Puzzle 2 via TDD with phpspec

Опубликовано: 23 Март 2026
на канале: David Stockton
115
2

In part 2 we learn that due to a translation error on Santa's instructions, turn on means to increase brightness by 1, turn off means decrease it by one with a minimum of 0 and toggle means to bump the brightness by two. We add some functionality to our grid and our light bulb to determine what the final total brightness is. All of this being done with Test-Driven Development in phpspec.

https://github.com/dstockto/AdventOfC...