The owner of the Gambler’s Nest hired you to create the software for a slot machine. The game in this slot machine is called “JUST MY LUCK” or simply “LUCK”.
The software specifications are the following:
There are (3) boxes on screen. One of eight (8) possible tokens can be randomly appear in each box. The 8 tokens are * (asterisk), © (heart), ¨ (diamond), § (club), ª(spade), # (sharp sign), $ (dollar), and ☺/☺ (faces). Each combination corresponds to certain merit and/or demerit.
The player must drop ten (10) coins to start the game. The player bets 1 to 3 coins, which will be subtracted from his/her remaining coins, and press a key to start generating tokens randomly for each box.
Conditions:
1.If there are 3 *’s the player’s money is tripled and multiplied by the number of coins dropped.
2.If there are 3 ©’s the player’s money is doubled and multiplied by the number of coins dropped.
3.if there are 3 ¨’s the player’s money is tripled.
page 1 of 3
2006-09-25
15:43:50
·
4 answers
·
asked by
ford_0008
2
in
Computers & Internet
➔ Programming & Design