Yeah I'm trying to do the riffle shuffle.
I think sawpping the odd/even indices is how it would be done right?
Type: Posts; User: ronimacarroni
Yeah I'm trying to do the riffle shuffle.
I think sawpping the odd/even indices is how it would be done right?
I want to make a shuffling class.
What it would do would be to switch the places of odd numbers and even numbers of cards
So instead of
1
2
3
4
5
6
It'd be
Thank you, that worked. :-bd
Thanks for the answer, but I tried it and it said "package does not exists <identifier required>
Apparently I can only create an arraylist in the main class.
I'm making a card game and I want to make a shuffle class to randomize the cards.
I'm using an arraylist to store all the cards and I was planning on using the arraylist as a parameter for my...