Compared to the first thing I tried above, which was just "generate full list, fill the right tiles with the right number in one go", it feels, to me, overly complicated. I have to admit that whatever I feel, your code is the simplest that works haha.
I know my solution doesn't work, but I don't understand why, it really feels like a bug forcing us to go for more complicated code.
I know my solution doesn't work, but I don't understand why, it really feels like a bug forcing us to go for more complicated code.