public class DouDiZhu {
public static void main(String[] args) {
String[] huaSe = {"♥","♦","♠","♣"};
String[] mianZhi = {"3","4","5","6","7","8","9","10","J","Q","K","A","2"};
ArrayList<String> pai = new ArrayList<>();
ArrayList<Integer> indexs = new ArrayList<>();
int index = 0;
for (int i = 0; i < mianZhi.length; i++) {
for (int j = 0; j < huaSe.length; j++) {
pai.add(huaSe[j]+mianZhi);
indexs.add(index++);
}
}
pai.add("小鬼");
indexs.add(index++);
pai.add("大鬼");
indexs.add(index);
ArrayList<Integer> 小陈 = new ArrayList<>();
ArrayList<Integer> 小红 = new ArrayList<>();
ArrayList<Integer> 小丽 = new ArrayList<>();
Collections.shuffle(indexs);
for (int i = 0; i < indexs.size()-3; i++) {
if(i%3==0){
小陈.add(indexs.get(i));
}
if(i%3==1){
小红.add(indexs.get(i));
}
if(i%3==2){
小丽.add(indexs.get(i));
}
}
System.out.println(小陈);
System.out.println(小红);
System.out.println(小丽);