Slot Machine

This composition mimics the action of a slot machine. It animates three "wheels" and uses pseudo-random numbers to determine the final placement. The chance of having three colors line up is one in nine, but any play sequence may be much shorter or longer than nine plays.

Use the "Play" button to start, and the "Reset" button to prepare for the next play. The composition will not work correctly if you try to play again without a reset.

Composition and supporting files: 

Subscribe to RSS - Logic