实现斗地主发牌(java)


/**
*这是一个java实现的斗地主,发牌结果的程序,实现3个人十三张牌,然后底牌3张。
*/
import java.util.Arrays;
public class pokerDemo{
	public static void main(String[] args) {
		
		
		/*生成一副牌的数字,简称牌库*/
		int[]pkCode=new int[54];											
		
		for(int i=0;i<54;i++){
			pkCode[i]=i;
		}
		
		
		/*花色*/
		String[]color={"方","梅","红","黑"};								
		
		
		/*数字*/
		String[]num={"3","4","5","6","7","8","9","10","J","Q","K","A","2"};	
		
		
		/*生成数组实现空的54个位置,存放随机洗牌后的牌,简称牌位*/
		int[]pk=new int[54];
		
		
		for(int i=0;i

你可能感兴趣的:(其他)