Sample Output of the High Low Program
Please note - this should just give you an idea of what your output
should look like. You may format yours in any easy to read way!
Welcome to the Higher-Lower Card Game.
=======================================
Try your luck against the computer!
How many cards do you want to play? 3
The computer plays first ...
The computer's first card: 5♠
Computer's points: 40
Computer's bet: 10
The computer chose high.
Next Card: 9♠
The card is higher - the computer was right!
Same suit - 2 bonus points!
Computer's points: 52
Computer's bet: 13
The computer chose low.
Next Card: J♦
The card is higher - the computer was wrong!
Same suit - 2 bonus points!
Computer's points: 41
Computer's bet: 10
The computer chose low.
Next Card: 8♥
The card is lower - the computer was right!
Computer's points: 51
Your turn ...
First card: 8♣
You have 40 points.
Enter your guess (1 for higher; 2 for lower): 2
Enter your bet (between 10 and 40): 10
Next Card: 4♣
The card is lower - You were right!
Same suit - 2 bonus points!
You have 52 points.
Enter your guess (1 for higher; 2 for lower): 1
Enter your bet (between 13 and 52): 30
Next Card: 4♠
Sorry, the same - no points!
You have 52 points.
Enter your guess (1 for higher; 2 for lower): 1
Enter your bet (between 13 and 52): 30
Next Card: 9♦
The card is higher - You were right!
You have 82 points.
That's it!
Computer's points: 51
Your points: 82
Congratulations - You beat the computer!