Question: Game Rules: Both players start with 30 life points. A player loses the game if it is 0 or less. Randomly decide who goes first.

Game Rules: Both players start with 30 life points. A player loses the game if it is 0 or less. Randomly decide who goes first. Shuffle both players decks. Each player starts with 5 cards in hand. There is no hand size limit. Both players take turns. A turn has two phases: Play cards and Attack with Unit cards. At the beginning of each players turn, the active player draws two cards on their turn. At the beginning of each turn a player earns n+1 rupees into their treasury. o That is, turn 1, they will gain 1 rupee, turn 2 they will gain 2 rupees. If they have not spent their rupee from turn 1, they will have 3 rupees at the start of turn 2. The treasury is an int field used to keep track of how many rupees a player has earned. Rupees do not deplete each turn. A player may spend Rupees to play cards from their hand. If they spend Rupees, it is removed from their treasury. Play cards Phase: A player can only play cards if they have enough Rupees. A player may play a Unit onto their side of the field. Units stay on field. Units may be used to attack during the attack phase. A player may play an item from their hand. Items are removed after a use. (You may keep track of them by making a discard pile, or erase them from the game.) Attack Phase: The active player decides what to attack with each unit he has on the field. He may attack once with each unit including the turn it is played. Units may target a player or another unit. If a unit targets a player, he loses life equal to the units attack. If it targets the opponents units, it deals damage to the unit, and the opponents unit will deal its damage to the attacker. Units with 0 or less life are put in the discard pile or removed from the game. Special Win Condition: The Triforce There are three Triforce cards in the deck. When played, there is no effect. The game will keep track of each one played. If one player has played all three Triforce cards, that player wins the game. Legend of Zelda Decks A deck is a list containing Card objects that you will create. There are 10 unique cards. 6 Units and 4 Items. Both players have a 40 card deck. You will write code to construct them multiple times as described in the card count in the table below. Cards will have two types, Units, and Items. All cards will have a cost and a description. Units will have fields storing attack and life. Items will have an effect/interact with the game in some way. Number of Card Name Attack Life Cost Description 3 Triforce - - 9 Win if 3 are played. 5 Link 6 5 7 3 Zelda 3 7 6 2 Gannondorf 6 10 9 4 Goron 3 5 5 4 Zora 4 4 4 6 Skeleton 3 1 1 4 Master Sword - - 5 +4/+2 5 Fairy - - 6 Target unit or player: +5 life and draw 3 cards. 4 Bow and Arrow - - 8 Destroy a unit and deal 7 damage to the opponent.

please use java not c++.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!