public void givecard(){
System.out.println("玩家"+player1.name+"拿牌");
Cards card1=cardlist.get(0);
System.out.println(card1.size+":"+card1.point);
player1.cards.add(card1);
System.out.println("玩家"+player2.name+"拿牌");
Cards card2=cardlist.get(1);
System.out.println(card2.size+":"+card2.point);
player2.cards.add(card2);
System.out.println("玩家"+player1.name+"拿牌" );
Cards card3=cardlist.get(2);
System.out.println(card3.size+":"+card3.point);
player1.cards.add(card3);
System.out.println("玩家"+player2.name+"拿牌");
Cards card4=cardlist.get(3);
System.out.println(card4.size+":"+card4.point);
player2.cards.add(card4);
System.out.println("发牌结束");
}
public void ForEachGivecard(Palyer player){
for(Cards cr : player.cards) {
System.out.println("第一位玩家的牌"+cr.size+":"+cr.point);
}
}
// 开始游戏比较两位游戏手里牌的大小