实现给三名玩家发牌操作
public static void main(String[] args) {
String[] color = {
"♥", "♠", "♣", "♦" };
String[] numbers = {
"A", "2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K" };
LinkedHashMap<Integer, String> pokerMap = new LinkedHashMap<Integer, String>();
ArrayList<Integer> pokerValueList = new ArrayList<Integer>();
for (int i = 0; i < 52; i++) {
pokerValueList.add(i);
int colorIndex = i % 4;
int pokerIndex = i / 4;
String poker = color[colorIndex] + numbers[pokerIndex];
pokerMap.put(i,poker);
}
System.out.println("准备扑克牌");
System.out.println("扑克牌值:"+pokerValueList);
System.out.println("扑克牌面:"+pokerMap);
System.out.println("洗牌");
Collections.shuffle(pokerValueList);
System.out.println(pokerValueList);
TreeSet<Integer> play1 = new TreeSet<Integer>();
TreeSet<Integer> play2 = new</