In my solitaire game, I have 2 sets of cards, I want to create a separate permutation table for each one.
As when I created one, I did not find a place to assign a name to the table. So, how to choose the one you want? Thanks!
You can generate a permutation table and copy all values from it into an array. Then use the array to get random values.
You can use one 2D array to store both permutation tables - one on Y=0 and another on Y=1
Develop games in your browser. Powerful, performant & highly capable.
You can generate a permutation table and copy all values from it into an array. Then use the array to get random values. You can use one 2D array to store both permutation tables - one on Y=0 and another on Y=1
That is a great idea! thanks!