📄 cardplaying.java
字号:
package usededclass;
/**
* <p>Title: </p>
* <p>Description: </p>
* <p>Copyright: Copyright (c) 2005</p>
* <p>Company: </p>
* @author not attributable
* @version 1.0
*/
public class CardPlaying extends XiaoFan
{
public static void main(String[] args)
{
System.out.println("Please enter the numbers of players");
int number=readInt();
CardDeck allCards=new CardDeck();
allCards.shuffle();
for(int i=0;i<number;i++)
{
int n=54/number;
int m=54%number-i;
if(m>0)
n = n + 1;
Hand palyer1=allCards.distributeCard(n);
String str="palyer";
int j=i;
j++;
str=str+j;
System.out.println("The cards of"+str+" are follows");
palyer1.showCards();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -