Question: Java Create a program using a Stack (peek, pop, push) where two players throw cards. Please include the following: 1. There will be 10 rounds
Java
Create a program using a Stack (peek, pop, push) where two players throw cards. Please include the following:
1. There will be 10 rounds
2. Each player has 10 shuffled cards (the cards could be any type like baseball, football, pokemon, and etc.)
3. The player with the higher valued card wins that round
4. Tally up who won each round and give a final score and call the winner
While writing the program, use your classes to break down the code so the Main class will have very little code in it except initializing and starting the game.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
