Hi,
Thanks thats an interesting method I haven't seen before but it makes the game slightly unfair if the first number chosen is the highest no one else will ever get a chance to get that number.
That's slightly flawed logic. Each player has the same chance of going 1st.
i)Imagine 3 players,
PLAYER A picks from 1 2 or 3, he has 33.333r% chance of picking any number, we'll choose 3 (highest) to demonstrate.
Once he's picked 3, PLAYER B and PLAYER C still have an equal chance of going next (50%).
If PLAYER B picks 2, this now leaves PLAYER C with 1, going last (unfair? no).
Use this logic backwards now.
If PLAYER A picks 1, B and C now have 50% chance of going 1st, increasing both of their odds.
If PLAYER B now picks 2 again, this guarantees PLAYER C going 1st even though both times he hasn't picked and has the same chance the whole way through.
ii) imagine 13 players with a suit of cards.
There's 1/13 chance of getting the ace for each player.
If PLAYER 1 draws the ace, everyone still thinks they have the same chance of drawing the ace until it's actually revealed, just because they're not going 1st doesn't lower their chances of getting it.
Trawl the internet for 'Progressive Probability' for more examples.
Then I still need a way to assign the turn order to the structure or entity which generated it.
When I made a turnbased game, I initially thought too that you'll then need to change the turns. but that's the reason why you're generating the initial turn?
The players themselves will probably just be structs and the turn order number will just be a data member of that particular struct. Unless I can think of a better way of doing it with arrays or perhaps I will make each one an entity and store it's turn order in a skill?
For storing whose turn it is, just have an integer array, which saves each position from the initial randomisation. Then just ++ through the array until the end.
You can also assign this number to a skill for each entity, then reference it to make sure they're moving the right pieces.
Hope this helps