Slot machine, Computer Engineering

A special Slot Machine is introduced in a new casino; this machine has a digital interface of a 3X3 grid. An interface button named as SPIN for making the machine spin. There are four symbols BELL, BAR, CHERRY, and PLUM that can appear at random on the grid. The machine accepts 3 coins for a single spin. The machine has a special interface for collecting input coins. The inserted coins are also accumulated and shown on the machine interface. When the machine is spun a 3X3 pattern appears on the screen. If there is any match symbol in a row, or a column or in a diagonal the player is rewarded with 5 times the input-coins. If the there is more than one such row, column or diagonal the reward will be double for each, if the two diagonals are the same the reward will be 10 times. You are required to implement a C++ class, which can be used to simulate this machine on computer. For example if a player spun the machine and it appears as the given below:

2486_Slot Machine.png


The player will be rewarded with 2 times the coins used to play the bet that is 6 coins, as only one matched column appeared.

Posted Date: 3/13/2013 6:55:05 AM | Location : United States







Related Discussions:- Slot machine, Assignment Help, Ask Question on Slot machine, Get Answer, Expert's Help, Slot machine Discussions

Write discussion on Slot machine
Your posts are moderated
Related Questions
Why IO devices cannot be directly be connected to the system bus? The IO devices cannot be directly linked to the system bus because i.  The data transfer rate of IO device

Step 1: Click on Edit Step 2: Select reference Step 3: Select Translation Step 4: Click on SSI Step 5: For showing the SSI file; choose one of the following options:

What is NEG instruction Arithmetic sign inversion or two's complement (NEG). NEG instruction two's complements a number which means that arithmetic sign of a signed number cha

Some of the uses of append query are as follows ? You will save time by appending data to an existing table rather than manual update. ? Appending files based on particular

What is the purpose of guard bits used in floating point operations? The guard bits are the extra bits which are used to retain the in-between steps to enhance the accuracy in

Q. Explain Point-to-point Message Passing? In point to point message passing, one process transmits/receives message from/to another process. There are four communication modes

What are the desirable features of an Electronic Market Place? Features of an Electronic Market Place: 1. Its electronic and business center is not a physical building qu

Multiplicity Multiplicity in an association specifies tells us about number of objects participate in a relationship. It decides the number of related objects. Multiplicity is

Q. Show the Bus and Memory Transfers? A digital computer has many registers and rather than connecting wires amid all registers to transfer information between them a common bu

Accessibility testing for web sites is a service that can give much more than the standard point-by-point testing methods of most automated services.