Skip to content

ellaellac/snap-java-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages