A Card games logic.
First here is the Logic of the Game.
- - BlackJack Planning Phase
- - Dealer Cards
- - Player Cards
- - Deal the Cards
- - Display the Cards
- - Sum of the Dealer
- - Sum of the Player
- - Compare the sum of the Cards, D vs. P
- - The Rules
- - if P cards sum is > 21 = Bust
- - if P cards sum is < 21 = Option : Hit or Stay
- - if Option P Stay compare of, D vs. P
- - if P sum is < 2 and > D sum then P Wins !
- - if P sum is < D sum then P loses !