-
Notifications
You must be signed in to change notification settings - Fork 88
Open
Description
I noticed everytime you deal it's local randomCard = math.random(1,52)
Keep the available card (or card indexes) in a list. Then remove a random card (or index) like this:
Random random = new Random();
List deck = new ArrayList<>();
// ...
int randomIndex = random.nextInt(deck.size());
Card nextCard = deck.remove(randomIndex);
Possibly add more decks and a shuffle function. Because currently, it doesn't seem fair. Also without being able to double and split
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels