Use case diagram for "War" Card game . Description of the game: 4 is the max number of players. The deck of cards is split evenly between the players at the beginning of the game, players may shuffle their deck if they wish. The game starts by all the players playing the top of their deck. Whoever has the largest card wins all the cards that were played that turn, and adds them to the bottom of their stack. If two or more players play a card with the same value, those players enter a "war". The players place the next card of their deck face down and then another card face up. Whoever wins the face up card collects all the cards that were played. If the cards happen to be equal again, then another war is done on top of the cards that were already on the table(1st war with 2 players has 4 cards to win, 2nd card with 2 players has 8 cards to win, etc). If a player runs out of cards during a war they immediately lose the game. The game ends when only one player has all the cards. The nature of this game is entirely random, there is no skill involved.   High-Level requirements: a. Each player must be able to register into the game and enter their name i. Max of 4 players b. Each player must get the same number of cards   i. Deck size is 52   ii. If 3 players are playing we must discard a random card c. Card values are logical(2-10, Jack beats 10, Queen beats Jack, King beats Queen) Aces win everything unless 2 or more players play an ace d. When a "war" is started other players not in the war cannot play and are changed to bystanders until the war is over e. Must have a system showing each players current card count every turn   i. If a players card count reaches 0 but there are still 2 or more players with cards they become a "viewer" f. End of game must state the winner

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Use case diagram for "War" Card game .

Description of the game:

4 is the max number of players. The deck of cards is split evenly between the players at the beginning of the game, players may shuffle their deck if they wish. The game starts by all the players playing the top of their deck. Whoever has the largest card wins all the cards that were played that turn, and adds them to the bottom of their stack. If two or more players play a card with the same value, those players enter a "war". The players place the next card of their deck face down and then another card face up. Whoever wins the face up card collects all the cards that were played. If the cards happen to be equal again, then another war is done on top of the cards that were already on the table(1st war with 2 players has 4 cards to win, 2nd card with 2 players has 8 cards to win, etc). If a player runs out of cards during a war they immediately lose the game. The game ends when only one player has all the cards. The nature of this game is entirely random, there is no skill involved.

 

High-Level requirements:

a. Each player must be able to register into the game and enter their name

i. Max of 4 players

b. Each player must get the same number of cards

  i. Deck size is 52

  ii. If 3 players are playing we must discard a random card

c. Card values are logical(2-10, Jack beats 10, Queen beats Jack, King beats Queen)

Aces win everything unless 2 or more players play an ace

d. When a "war" is started other players not in the war cannot play and are changed to bystanders until the war is over

e. Must have a system showing each players current card count every turn

  i. If a players card count reaches 0 but there are still 2 or more players with cards they become a "viewer"

f. End of game must state the winner

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education