Wednesday, 4 November 2015

Quick Match Project

Rules of Quick Match


Quick Match can be played as per the following rules:
  It is a multi-player game. There can be 2 to 4 players.
  Each player is given a set of five cards. The remaining cards are kept in a pile at the center.
  The player can either draw a card from the pile of cards or pick a card, which is thrown by another player.
  The first player to collect five cards of the same suite wins the game.
  A sample screenshot of Quick Match for two players is shown in the following figure.


  Interface of Quick Match


Design Specifications
The design of the game should be as per the following specifications:
  It is a multi-player game. The number of players that can play the game can be 2 to 4.
  The name of each player is accepted from the user before starting the game.
  The cards are distributed to the players randomly. The remaining cards are kept in a pile at the center.
  The player whose name is entered first gets the first chance.
  Other players get the chance in the sequence in which their names were entered.
  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.
  The card picked by the player gets added to his/her card collection. When a new card is added in the player’scard collection, the total number of cards in the collection exceeds five. Therefore, the player needs to discarda card from his/her collection and place it upturned so that the other players can see the card.
  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 previousplayer has discarded.
  After a player discards a card, the player’s collection of cards should be checked to determine whether allcards belong to the same suite.



CLICK HERE

No comments:

Post a Comment