Our running example is a casino slot machine with three reels. Each reel has five possible states, represented by images. Each reel randomly assumes a state when the play button of the slot machine is pressed. The slot machine balance will be incremented or decremented depending on whether or not all three reel states are equal.
Srini Penchikala Aug 21, 2014