Skip to content

CordialExperience/two-card

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test Project

Create a card game which meets the following acceptance criteria:

  • By default, this card game is played with two players

  • Display a "Play" button in the UI

  • Clicking the "Play" button will deal hands to all players and determine a winner

    • Deal cards from one standard 52-card deck
    • A hand contains seven cards
  • Display those hands in the UI

  • The winner of the game is determined by the number of pairs a hand contains

  • Visually indicate which player has won the round

  • Mark each hand's pairs with a colored border

    • Each pair in a hand should have a unique border color.
  • Whenever the "Play" button is pressed again, new hands will be dealt and a new winner will be determined

Example card -- use these SVG assets when displaying cards

9 of Diamonds

Extra Credit

  • Option to add or remove hands (2-4 players allowed)
  • Automated tests
  • TypeScript

Code should be

  • Written in React
  • Readable/understandable
  • Well-organized
  • Efficient
  • Extensible
  • Not overly complicated

Additional notes

Please update this readme with any notes on your code.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 76.7%
  • HTML 17.4%
  • CSS 5.9%