subject

The game uses a deck of cards. Each card has a color and a number. Each player in the game is dealt with five cards, which is typically called their hand. The object of any game is to win. Winning is determined by a score. There are multiple levels of this game which differ in how the score is computed. The simplest version (aka C version) score is simply the addition of all the numbers in a player's hand. The next 2 levels (A and B version) take into account the number of cards of the same color. The goal is to collect the highest value cards with the fewest number of colors. Play consists of each player, in order, selecting to return some number of their cards to the bottom of the deck and then replacing those cards from the top of the deck. After each round, where a round is all players replacing as many cards as they choose, the deck of cards is shuffled. After 10 rounds the player with the highest score is the winner. Design and implement a Java program using multiple classes to simulate playing the game. Here's a potential list: game, deck, card, player, hand, score, round.
Now let's consider the **attributes** that are involved. These ultimately become class instance variables. Here's a potential list: color of card, number of card, number of players, number of cards in a hand, number of cards in a deck, range of colors, range of numbers, number of rounds, player's turn.
Finally let's consider the **actions or behaviors**. These usually become methods in the various classes. Here's a possible list: shuffling the cards, dealing the cards, exchanging cards, computing score, playing a round, playing the game.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 07:00
Why were most movies from the late 1890s until the early 1930s only filmed in black and white? there were only a few people who could afford the technology to produce color motion pictures back then. audiences did not want color motion pictures until later. the film used to make color motion pictures often overheated, which was a safety hazard, so it was generally not allowed. color films had to be hand-colored, frame by frame.
Answers: 3
question
Computers and Technology, 23.06.2019 19:30
Amitha writes up a one-page summary of a novel during her summer internship at a publishing company. when she reads over the page, she realizes she used the word “foreshadow” seven times, and she would like to reduce the repetition. which tool would best amitha solve this problem?
Answers: 3
question
Computers and Technology, 23.06.2019 21:20
In microsoft word, when you highlight existing text you want to replace, you're in              a.  advanced mode.    b.  automatic mode.    c.  basic mode.    d.  typeover mode
Answers: 1
question
Computers and Technology, 24.06.2019 05:00
Who is most likely be your target audience if you create a slide presentation that had yellow background and purple text
Answers: 2
You know the right answer?
The game uses a deck of cards. Each card has a color and a number. Each player in the game is dealt...
Questions
question
Engineering, 24.04.2020 03:24
question
English, 24.04.2020 03:24
question
Mathematics, 24.04.2020 03:24