JTF
>
Demo Gallery
>
assignments
>
SlotMachine
This assignment simulates the gambling device called a slot machine (or fruit machine in English-speaking countries outside North America). The goal is to line up symbols in patterns that generate a payoff, as shown in the following table:
CHERRY
any
any
2
CHERRY
CHERRY
any
5
CHERRY
CHERRY
CHERRY
7
ORANGE
ORANGE
ORANGE
10
ORANGE
ORANGE
BAR
10
PLUM
PLUM
PLUM
14
PLUM
PLUM
BAR
14
BELL
BELL
BELL
18
BELL
BELL
BAR
18
BAR
BAR
BAR
150