Skip to content

Latest commit

 

History

History
16 lines (14 loc) · 712 Bytes

File metadata and controls

16 lines (14 loc) · 712 Bytes

snap-java-project

  • build a card game using Java

Overview:

  • contains deck of cards that contains all 52 cards
  • each card contains string unit(heart, club, diamond and spade), string symbol, and values
  • can sort the deck in the number order and suit order
  • shuffle deck and deal card function

How to play Snap?

  • Player can take the card from the top of the deck
  • By pressing Enter, player can take turn
  • Each turn, a new card is dealt from the deck
  • The game enable player to play with the computer
  • The game continues until 2 cards in a row have the same symbol, at which point the player has 2 seconds to submit the word "snap" to win the game.
  • If they don't type it in time, they lose.