I was send here from stackoverflow because they thought maybe you can help me.
Here my original post: https://stackoverflow.com/questions/26799476/a-faster-way-then-doing-14-for-loops
What I want:
Maybe someone knows the Smartphone game "Elemental Kingdoms" If not i will try to explain.
You got a whole bunch of cards and runes. And you choose 10 cards and 4 runes. This is then your deck.
The enemy got a Demon (a very strong card which you have to damage as hard as possible).
Know you draw every time its your turn a card. A Card got Cooldown ( time until it can be played which reduces every round) if it has has cooldown 0 it can be played. Its automaticly placed on the first free place on your field.
Cards can attack cards in front of them. although everycard got abilitys which are giving them aditional attack or resistance or stuns....
Its over if the demon is dead (doesnt matter for the simulation) or when the player got no cards left or is health is 0. Health is lost if no card is in front of the demon that could take the damage or if the demon got a ability through that health is lost.
Know i wanted to create a Simulator which creates every deck, simulates the fight serveral times and at the end gives out the Deck which dealt the most damage to the demon.
The Problem with that is: There are more than 200 cards which can be used (and the same card could be 10 times in the deck) so there are to many possible decks.
So i wondered if someone knows if it is possible to do what i want mathematically or should i just leave it?
I appreciate everything that helps me :)