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
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
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images