Skip to content

myorg/KnuthShuffle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KnuthShuffle

Java implementation of the Knuth shuffling algorithm. https://rosettacode.org/wiki/Knuth_shuffle

Classes:

Main - contains a simple test to create and shuffle the deck

Deck - contains many cards. In the case of this implementation a deck really represents a shoe and the show can contain multiple decks to be shuffled.

Card - contains a card from the deck. Cards contain the following attributes:

  • Name - A two character string containing the type (A,2,3...Q,K) and the suit (H,D,C,S)
  • Suit - A one letter string containing the suit
    • Hearts - H
    • Diamonds - D
    • Clubs - C
    • Spades - S
  • High Value - The maximum value of a card. For example, an Ace is considered to have a high value of 11 in Blackjack.
  • Low Value - The maximum value of a card. For example, an Ace is considered to have a low value of 1 in Blackjack.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published