Hi,
I am trying to make a program that will randomly generate a deck of sixty cards for a ccg (customizable card game). In this deck I would like there to be a certain number of cards of different rarities (Rare, Uncommon, Common and Fixed). I have no idea how to even begin this project so I was hoping that someone here could lend me a hand in at least starting it up.
One of the major problems I run into is this:
I wish to have 60 cards in a single deck: 1 Fixed, 3 Rare, 20 Uncommon, and 36 Common. Here is one twist: say I have 108 Rares, 108 Uncommons, and 108 Commons to choose from. For each rarity the same card may be chosen up to two times (but no more than that). The other twist I have a problem grasping is this: there are some cards that are tribe specific and depending on the tribe I am making a deck for should be weighted more (have a higher percentage to get in the deck). Of the 108 cards for each rarity, 36 are tribe specific for rares, 30 for uncommon, and 30 for common. Breaking it down further, there are 6 tribes (6 Rare cards per tribe, 5 uncommon, and 5 common).
So when choosing 3 rares from the 108 possible rares there should be a greater chance to get one of the 5 tribe specific rares than any of the others (not too big of a difference though).
Can anyone help me out?
Thanks,
rewclaus
I am trying to make a program that will randomly generate a deck of sixty cards for a ccg (customizable card game). In this deck I would like there to be a certain number of cards of different rarities (Rare, Uncommon, Common and Fixed). I have no idea how to even begin this project so I was hoping that someone here could lend me a hand in at least starting it up.
One of the major problems I run into is this:
I wish to have 60 cards in a single deck: 1 Fixed, 3 Rare, 20 Uncommon, and 36 Common. Here is one twist: say I have 108 Rares, 108 Uncommons, and 108 Commons to choose from. For each rarity the same card may be chosen up to two times (but no more than that). The other twist I have a problem grasping is this: there are some cards that are tribe specific and depending on the tribe I am making a deck for should be weighted more (have a higher percentage to get in the deck). Of the 108 cards for each rarity, 36 are tribe specific for rares, 30 for uncommon, and 30 for common. Breaking it down further, there are 6 tribes (6 Rare cards per tribe, 5 uncommon, and 5 common).
So when choosing 3 rares from the 108 possible rares there should be a greater chance to get one of the 5 tribe specific rares than any of the others (not too big of a difference though).
Can anyone help me out?
Thanks,
rewclaus