Question
Would anyone be able to provide a solution in Java for this scenario? Thank you in advance! implement a simple card game, making use of
Would anyone be able to provide a solution in Java for this scenario? Thank you in advance!
implement a simple card game, making use of class structure, object usage and data structures. The first round starts with all players having the same number of cards in their deck, which should not yet be visible to the players; each card has several attributes, with each attribute ranging in value from 0 up to 9. All players pick up a card from the top of their deck and view it. The nominated player then chooses an attribute which they wish to compare, say Attribute B to play with; all the players compare the values of this Attribute B on their cards and the player with the highest value wins the round and then collects the cards that the other players lost that round with and puts them (along with their own card) at the back of their deck.
The next round once again starts with each player picking up the card on top of their deck and looking at it, then winner of the previous round chooses the attribute everyone will play with for that specific round. The game continues in the same fashion until one player has all the cards, so say everyone had 5 cards and there were two players, the user and the computer then it would be played until one player accumulated all 10 cards
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started