The board plays a sequence of lights and tones. You repeat it back on the buttons. Every round it adds one more step, and it gets away from you faster than you expect.
This is the hardest of the bonus projects and the one most worth doing. Everything it needs you already have — a list that grows, buttons that get read, LEDs and a speaker. Nothing new, just more of it at once.
3V3 to its own pin with Pin.PULL_DOWNFour buttons is exactly what the kit contains. Give each LED a different tone — that is what makes the sequence memorable rather than just visible.
append() a new random step each round.The trick in task 5 is comparing two things that arrive at different times: the sequence is already in a list, and the presses come in one at a time. Compare each press against the sequence position it should match, and stop at the first mismatch.
Round 1 — watch... your turn OK
Round 2 — watch... your turn OK
Round 3 — watch... your turn wrong!
You made it to round 3.