Minecraft contains a menagerie of virtual creatures, some of which players can kill and eat (or tame, if they want pets). One, a red-and-white cowlike critter called a mooshroom, is known for moseying about aimlessly. Jordan realized he could harness the animal’s movement to produce randomness. He built a pen out of gray stones and installed “pressure plates” on the floor that triggered a trap inside the maze. He stuck the mooshroom inside, where it would totter on and off the plates in an irregular pattern.
Presto: Jordan had used the cow’s weird behavior to create, in effect, a random-number generator inside Minecraft. It was an ingenious bit of problem-solving, something most computer engineers I know would regard as a great hack — a way of coaxing a computer system to do something new and clever.
No comments:
Post a Comment