Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Beginner JAVA program. Using only if and if else statement, switch, loops(for, while, do while) , and array create code for Furggle Free the card

Beginner JAVA program.

Using only if and if else statement, switch, loops(for, while, do while), and array create code for Furggle Free the card dice game. It's played with 52 cards 4 suit cards deck and a 3sided die. (Please explain the code after the coding since I'm still a very beginner.) Thank you!!

=========================================================

The Rule: The suits will determine the grok Bin. The face value will become the value of emoji. (Must track this A K Q J are 10) Roll the 3sided die - emoji associated with that number for the current grok bin is added to his hand. If player gets an emoji and they have no Furggles in their hand and the emoji is not a Furggle they can reject the emoji but must take the next emoji. -If they reject and emoji Repeat the entire process for -They must not reject the next emoji

Dice value Hearts Grok Bin Clubs Grok Bin Diamond Grok Bin Spades Grock Bin 1 Smiley Harpsicord Dogfish TastyCake 2 Blue Tuna Smiley Double Aardvark Smiley 3 Ernie Furggle Smiley SwarmpThing You should display the current hand after each emoji is added- include the value of each emoji. After they have five emojis the hand ends and the hand values are compared.

For your program you only need to do one player (feel free to do two people to allow competitive play).

Add the value for each card to get the hand total.

Special Rules for the hand total:

Note: Rules must be applied in this order:

CakeLoss: Ernie and Task Cake in the same hand. Subtract the value of the tasty cake card.

Double Down: Exactly two smileys halve the hand total.

Trips Up: Three or more smileys double the hand total.

SootheBeast: Harpsichord adjacent Swamp thing +15 to the hand

Fish fight: Blue Tuna and DogFish in the same hand -10

Quadvark: Exactly two Double Aardvarks. Hand times 4

Notes:

You should display the hand after each emoji is added include the value of the emoji.

At the end calculate the hand total.

Also - Keep Track of their total between multiple hands

Hint: use parallel arrays

It may be helpful to create static methods for certain task to break up the problem.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle 10g Database Administrator Implementation And Administration

Authors: Gavin Powell, Carol McCullough Dieter

2nd Edition

1418836656, 9781418836658

More Books

Students also viewed these Databases questions

Question

=+ What typical employee will the IA compare him/

Answered: 1 week ago

Question

=+7 What is the overall cost of the international assignment?

Answered: 1 week ago