This reminds me of programming something from A. K. Dewdney's Armchair Universe on my Amiga in the late '80s. I think it originally appeared in Scientific American.
It started off with bugs that just sort of juggled, but the ones that survived eventually glided around eating things.