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
Q. Describe the basic aspects of ENIAC? The main aspects of ENIAC can be summarized as: ENIAC was a general purpose-computing machine in that vacuum tube technology was

Hashed strings can often be deciphered by 'brute forcing'. Bad news, eh? Yes, and particularly if your encrypted passwords/usernames are floating around in an unprotected file some

Explain Gray Code Ans. Gray Code 1.  Extremely useful code. Also termed as reflected code. 2.  All gray code is different from the preceding and succeeding codes thr

How are switching system classified

Q. Explain about RISC PIPELINING? Instruction pipelining is frequently used to increase performance. Let's consider this in context of RISC architecture. In case of RISC machin

Reset and Submit are special types of input buttons. Submit is used to send data to the server and Reset resets/clears the form.

Q. Computational Fluid Dynamics? Computational Fluid Dynamics: CFD was a FORTRAN like language developed in the early 70s at "Computational Fluid Dynamics Branch of Ames Resear

Q. How to Create a Layout Table in dreamweaver? In last section you used cells to create a table. Now, you will see how to start with a table and add cells later. 1.  In Obj

Q. What do you mean by Loader? Loader is a program that assigns absolute addresses to program. These addresses are produced by adding the address from where program is loaded i

Determine the advantages of sixth generation computers One of the major dramatic changes in sixth generation will be the explosive growth of wide area networking. Network bandw