Skip to content

radek-drw/Jackpot-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jackpot-Game

Rules of the game

The are 2 posibilities to win the game:

a) all card colors have to be the same
b) all card colors have to be different
In any other ways the game is lost

Bid rules

a) when 'Play' button is activated function checks if bid value is at least 1$, if less then alert comes on the window with message. All bid values over 1$ are rounded to the lower number (1.2 will be 1 etc). Input is number type, but just in case a function checks if there is no string
b) if player won then bid is times 3 and goes to his wallet
c) if player lost then wallet value is less by bid value

In addition

a) the game counts number of games, wins and losses
b) player is informed about current wallet value and how much won or lost