Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 642 Bytes

README.md

File metadata and controls

25 lines (17 loc) · 642 Bytes

card-playing

simple app to simulate card play

Phase 1

Generate playing poker cards (52 card/kartu). With 4 suits: clubs (♣), diamonds (♦), hearts (♥), and spades (♠), and 13 rank: A, 2, 3, 4, 5, 6, 7, 8, 9, 10, J, Q, K.

  • A is an ACE
  • J, Q, K is Jack, Queen, King

E.g:

A♣, 2♣, 3♣, 4♣ .... so on A♦, 2♦, 3♦, 4♦ .... so on A♥, 2♥, 3♥, 4♥ .... so on A♠, 2♠, 3♠, 4♠ .... so on

Phase 2

From Phase 1, create 1 method/ function to shuffle the deck 3 times.

Output:

deck of cards with unsorted/ shuffled in an array, with the first is top of a deck face down, and the last is buttom of a deck.