Data driven shenanigans :)
Welp, I got the data driven stuff more-or-less working, though relatively untested. It's recognising the pattern for a circuit board from data, and the whole map is generated from data too, so that's good enough for me, for now.
I was right before - I'm tired and found myself making a bunch of silly mistakes, the main one being that I misread the configuration of the circuit board machine and assembled the machines as CBA, rather than ABC. But I've broken the back of it, I think now, so I'm also glad I pushed on. Shouldn't be too much more debugging from here.
Tomorrow: Levels! :D
PS: Listened to some old school techno stuff while coding. Neville Watson, if you want a listen. Reminded me somewhat of the BBC Paul Oakenfold mix that I used to listen to while coding/getting shit done.