1 quad NAND gate
1 quad NOR gate
1 quad XOR gate
1 hex inverter
The cost isn't the main thing here, though. A better reason to go with discrete logic is that the MCU also requires an entire software and hardware toolchain to create and load firmware.
Never underestimate the cost of adding nonvolatile memory to your system.
The article also mentions that ATMEGA809 should work here, and costs about $1.53 in singles https://www.digikey.com/en/products/detail/microchip-technol...
> I built two prototypes, one with an AVR128DA48, and one with the older ATmega4809 which is pin compatible, and their performance was indistinguishable. The program only uses about 1500 bytes, so an ATmega809, ATmega1609, or ATmega3209 should be fine
It would be fun to redesign this board for the lowest manufacturing cost with machine assembly and compare it to how much more expensive it would be to use discrete logic chips.
Otherwise, why use one chip when you can use none? This could all be little virtual switches in a web app.
Because you're actually designing a hardware product to sell.
Whereas less destruction of electronics -> more faithful "experimenting with and learning about logic" as per the device's purpose.