I would like to create a shuffling algorithm for an online TCG that would simulate the passive shuffle cheating tcg players do.
Specifically; a way to randomly shuffle a deck, however keeping similar and identical cards de-clustered in the final result.
For example, in MTG, a deck shuffled in this way would have a random distribution of cards in any way where there would be no cluster of more than 6-7 or less than 3-4 lands in any set of 10 cards.
A way I would like to do this is by being able to give different ways cards match a "weight", and have these weights repel each other in the shuffle, but I'm not sure how to incorporate this into an otherwise random shuffle.
Any suggestions on methods to achieve this or other more "natural" shuffles?
Aucun commentaire:
Enregistrer un commentaire