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
In order to support IA-32, the Itanium can switch into 32-bit mode with special jump escape instructions. The IA-32 instructions have been mapped to the Itanium's functional units.

Q. Write short notes on proton - proton fusion in sun. Proton - Proton cycle 1 H 1 + 1 H 1 → 1 H 2 + 1 e 0 + ν (emission of positron as well as neutrino) 1

Evolutionary approaches boil down - artificial intelligence: In fact as we will see whether evolutionary approaches boil down to like (i) just to identify how to represent pos

Processing elements (PEs)  : Every processing element consists of ALU, local memory and its registers  for storage of distributed data. This PEs has been interconnected via an inte

Mainframe computer Mainframe computers are very large, often can fill an entire room. They can store a large amount of information, can execute many tasks at the same time, can

Give detail explanation about Arithmetic Micro-operations These micro-operations perform some essential arithmetic operations on numeric data stored in the registers. These bas

Define processor clock. Processor clock is explained as the time periods in which all operations and data transfer within the processor take place.

What is a Priority Interrupt? Ans: A priority interrupt is a type of interrupt that establishes a priority over the many sources to determine which condition is to be serviced


Q. Define Colour Depth in graphic display system? It is clear that an image contains an array of pixels.  If we tell which pixels are 'off' and which are 'on' to the monitor, i