Skip to content

mieh/card-playing

Repository files navigation

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.

About

simple app to simulate card play

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages