Deck is an extensible deck of cards with a totally free poker implementation.
Are you dreaming with spanish deck? Just do it, extend core classes and feel the power shuffling and dealing cards.
public class SpanishGenerator implements Generator {
@Override
public List<Card> generate() {
// ...
}
}
// ...
Deck spanish = new DefaultDeck(new SpanishGenerator(), new SattoloShuffler());
spanish.suffle();
spanish.dealOneCard();
You don't like Sattolo's algorithm, do you really think you can do it better? Build your shuffler and plug in!
public class LivingLasVegasShuffler implements Shuffler {
@Override
public void shuffle(List<Card> cards) {
// ...
}
}
// ...
Deck lasVegasPoker = new DefaultDeck(new PokerGenerator(), new LivingLasVegasShuffler());
lasVegasPoker.suffle();
lasVegasPoker.dealOneCard();
And don't forget that you can build your own cards, suits and faces too! ;-)
This is it.
Clone local copy of the repository and run simple step.
Java JDK 8+ is required.
- gradle
./gradlew build
Only if you bring me a star.
You would really do that for me?
Do whatever you want with it, peace and love.
Family and friends, of course.