Zdravim,
vie mi niekto pomoct zo zadanim projektu pre hraci automat (slot machine).
zadanie:
Develop an application that stimulates a slot machine. The player starts out with M coins. The value for M is an input to the program, and you charge 25 cents per coin. For each play, the player can bet 1 to 4 coins. If the player enters 0 as the number of coins to bet, then the program stops playing. At the end of the game, the program displays the number of coins left and how much the player has won or lost in euros. There are three slots in the machine and each slot will display one of the three possible pieces: Bell, Grape and Cherry. When certain combinations appear on the slots, the machine will pay the player. The payoff combinations are as follows:
Zatial kde sme sa dostali v ucive je tu:
Programming Basics
Numerical Data
Instantiable Class
Selection Statements
Repetition Statements
Strings
podla vsetkoho by sme mali pouzit prikaz RANDOM aby automat nahodne daval symboly.
Aspon trosku pomoci ako zacat.
dakujem
|