Rules
of Quick Match
Quick Match can
be played as per the
following rules:
n It is
a multi-player game. There can be
2 to
4 players.
n Each player is given a set of five cards. The remaining cards are kept in a pile at the center.
n The player can either draw a card from the pile of cards or pick a card, which is thrown by another player.
n The first player to
collect five cards
of
the same suite wins the
game.
n A sample screenshot of Quick Match for two players is shown
in the following figure.
n Interface of Quick Match
Design Specifications
The design
of the
game
should
be as per the following specifications:
n It is a multi-player game. The number of players that can play the game can be 2 to 4.
n The name of each player is accepted from the
user before starting the game.
n The cards are distributed to the players randomly. The remaining cards are kept in a pile at the
center.
n The player whose name
is entered first gets the
first chance.
n Other players
get
the chance in the sequence in
which their names were entered.
n The first player needs to
pick the topmost card
from the
pile.
The card
picked
by the
player gets added to
his/her card collection.
n The card picked by the player gets
added
to his/her card collection. When
a new card is added in the player’s card collection, the total number of cards in
the
collection exceeds five. Therefore, the player needs to discard a card from his/her collection and place it upturned
so
that the other players
can
see the
card.
n After the first player discards the
card, the next player gets the chance to pick a card.
All players except the first player can either pick a card from the pile or pick the card
that the previous player has discarded.
n After a player discards a card, the player’s collection of cards should be checked to
determine whether all cards belong to the same
suite.
Solution;
https://drive.google.com/folderview?id=0BzDgK7VFVLaKZC1za3czeTF0Zm8&usp=sharing
No comments:
Post a Comment