This algorithm induction ability did not evolve in humans for decoding patterns of colored blocks. Rather, it may have evolved as a general-purpose learning mechanism for decoding almost any real-world pattern, whether it's how to play tag, use chopsticks, or build a canoe, just by watching.