在ecplise上用java实现扑克游戏算法 public class GameLanucher { public static void main(String[] args) { // TODO Auto-generated method stub System.out.println("开始发牌:"); ArrayList[] al= (ArrayList[]) StartPlay.FaPai(); ArrayList jia=al[0]; ArrayList yi=al[1]; System.out.println("甲方持有牌为: "); System.out.println(jia); System.out.println("乙方持有牌为: "); System.out.println(yi); for (int i = 0; i < jia.size(); i++) { System.out.print(GameRule.Num2Pai((int) jia.get(i))+" "); } System.out.println(); for (int i = 0; i < yi.size(); i++) { System.out.print(GameRule.Num2Pai((int) yi.get(i))+" "); } } }
2021-09-25 15:44:35 10KB 扑克牌代码
1