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
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
a) the game counts number of games, wins and losses
b) player is informed about current wallet value and how much won or lost