I'm making an app to play the card game "War", and my first problem is getting a random shuffle. I have a list with 13 other lists in it, each with the numbers 1-4 (representing the card values, then the suits). Since suits don't matter in War, I was going to just use indexes of the first "layer" to determine which card is of higher value. I have an identical list of numbers that will represent the "position" of each card (your vs opponent's discard pile or deck).
At the start of the game, I want to sort 26 random cards into two separate piles, without overlap of course (every card is sorted once). With my lists of lists setup, I'm not quite sure how indexes would work or how to set up the random shuffle. If this can be done with this setup, I'd be very grateful.
If it would work better for me to use a 52-item list or some dictionary format, I can also figure out how to do that.
(any help with the mechanic where you draw the same card and "go to war" would also be very much appreciated)