So here's what I want to do right now. Simply put I am currently working on a card game and the way I have the game pick the cards for the AI is like this:
Make a list containing all the available cards, sorted by the damage (Lowest to highest). Let's call this list 'ai_list'
Set the card that will be placed (enemy_card) to ai_list[index]. 'index' being the number I want to increase by one every time the function is run.
So I currently have the game execute in turns (player-enemy-player-enemy...), but the problem is that I don't know how to increase the index (set to 0 in the beginning) every time the function for the AI's card placing runs.
How can I do this?