public class DouDiZhu2 {
public static void main(String[] args) {
// Map储存牌的索引和组装好的牌
HashMap<Integer, String> poker = new HashMap<>();
// List储存牌的索引
ArrayList<Integer> pokerIndex = new ArrayList<>();
// 定义两个集合储存花色、牌号
List<String> colors = List.of("♠", "♥", "♣", "♦");
List<String> nums = List.of("2", "A", "K", "Q", "J", "10", "9", "
Java基础:斗地主发牌案例Map版(有序版)
最新推荐文章于 2021-06-09 18:01:22 发布